502 Unexpected EOF is given by Apigee or Target Endpoint?

Hi all,

When I'm hitting an apigee url POST operation, it is giving the below exception

{ "exceptions": [ { "type": "E", "code": "502", "message": "UnexpectedEOF", "detail": "095a55da-8ef9-49d6-a4b4-b723a76dafbd - Unexpected EOF" } ] }

Can some one comment if it is exception at Apigee level or at Target endpoint?

Thanks in advance

0 1 534
1 REPLY 1

An easy way to ascertain is to trace this call in Apigee and send a test call to the API.

Apigee has a "TRACE" facility that you can switch on for the environment you are interested in. Once it is turned on you can send a sample call to the API and the trace will show the operations happening in Apigee. You will also find the target endpoint represented as a "factory" icon. Clicking on it will show you the response received from the target.

If you cannot trace the API there is no sure way of saying if the error is from the API or backend. However, you can look at HTTP headers in request and response for clues on the source of the error.

If you have access to the target server (within your network for example) you can send a call directly to the target and see if it responds with the error.