I am getting following error very frequently on API

Not applicable

For same API request sometimes I get valid response other time I get following

{"fault":{"faultstring":"Internal server error Received unknown request for Organization:zendrive;Environment:prod;APIProxy:zendrive-partner-api;Revision:1 5","detail":{"errorcode":"messaging.adaptors.http.ServerError"}}}

It is affecting a lot of our traffic. Any suggestions will be helpful.

0 14 669
14 REPLIES 14

Similar Question here

you will see this issue when Mp-env association is not proper or if the apiproxy is not deployed properly to few Mps . You can check the deployment status using the below API which can provide you more information .

$ curl -u example@apigee.com https://api.enterprise.apigee.com/v1/organizations/$orgname/apis/$apiproxy/deployments

Not applicable

@Anil Sagar We tried the command you suggested and we see that all the Mps are in deployed state. See below. Any suggestion.

curl -u chandan@zendrive.com https://api.enterprise.apigee.com/v1/organizations/zendrive/apis/zendrive-partner-api/deployments

{

"environment" : [ {

"name" : "prod",

"revision" : [ {

"configuration" : {

"basePath" : "/",

"steps" : [ ]

},

"name" : "15",

"server" : [ {

"status" : "deployed",

"type" : [ "message-processor" ],

"uUID" : "b2998f89-08e9-4eae-a0c8-8feef11caa0a"

}, {

"status" : "deployed",

"type" : [ "router" ],

"uUID" : "38f80c53-a22b-4427-ab95-a178482daa6b"

},......],

"name" : "zendrive-partner-api",

"organization" : "zendrive"

@Chandan Shanbhag , Can you post the full response of above API ? May be you can put it in a text file and attach here if it doesn't accept more than 1000 chars..

@Chandan Shanbhag , Are you using any Invalidate Cache Policy in above API Proxy ?

Not applicable

Hi @Anil Sagar please find the full log in the doc link here

https://docs.google.com/a/zendrive.com/document/d/1MHgmR2EuVQoX-95HzzAgrYYf9ontU7wgTEAkINcPqac/edit?... We are not using Invalidate Cache Policy.

@Chandan Shanbhag , Don't have access to above doc. Requested for access.

Not applicable

@Maruti Chand Any idea ?

Not applicable

Looks like deployment is fine as the deployments status shows deployed .

@Chandan Shanbhag

Can you copy the response of the below API ?

/v1/o/$orgname/e/$envname/servers for both test and prod environments .

Is this happening only in prod and not in test ?

Can you also provide the Vhost conf of zendrive-partner-api from both the env ?

Not applicable

I get a 403 Forbidden for the API url you gave me

curl -v -u chandan@zendrive.com "https://api.enterprise.apigee.com/v1/o/zendrive/e/prod/servers"

I can only do

curl -v -u chandan@zendrive.com https://api.enterprise.apigee.com/v1/o/zendrive/e/prod

{

"createdAt" : 1407144186416,

"createdBy" : "noreply_admin@apigee.com",

"lastModifiedAt" : 1407144186416,

"lastModifiedBy" : "noreply_admin@apigee.com",

"name" : "prod",

"properties" : {

"property" : [ {

"name" : "useSampling",

"value" : "100"

}, {

"name" : "samplingThreshold",

"value" : "100000"

}, {

"name" : "samplingTables",

"value" : "1=one;"

}, {

"name" : "samplingAlgo",

"value" : "reservoir_sampler"

}, {

"name" : "samplingInterval",

"value" : "300000"

}, {

"name" : "aggregationinterval",

"value" : "300000"

} ]

}

I have not looked at test much - but I suspect the problem exists there too.

We have both default(80) and secure(443) vhosts setup.

And 2 aliases - zendrive-prod.apigee.net, api.zendrive.com

Not applicable

@Maruti Chand - any other info I can help you with?

Not applicable

@Anil Sagar @Maruti Chand Also, the errors have subsided now. Was there any issue that hit the message processors for a few hours today? Will be good to know. We did not touch our apigee config at all throughout this time. So, we are completely in the dark about what caused this and what fixed this.

Thanks for your help.

Not applicable
@Anil Sagar

- If you could share insights about what really happened yesterday, it would be very helpful

- If you could also confirm that in such scenarios, the only error will be

{"fault":{"faultstring":"Internal server error Received unknown request for Organization:zendrive;Environment:prod;APIProxy:zendrive-partner-api;Revision:1 5","detail":{"errorcode":"messaging.adaptors.http.ServerError"}}}

or there could be more similar errors from apigee ? If more, what would be the fault strings look like ?