Getting 502 Bad Request exception (Unexpected EOF)

I am intermittently getting following error in one API of my API proxy

{"fault":"{\"detail\":{\"errorcode\":\"messaging.adaptors.http.UnexpectedEOF\"},\"faultstring\":\"Unexpected EOF\"}"}

All the other APIs with the same target are working fine. I tried to access the backend API directly and it is working without any issue. What could be the reason behind this behavior?

@vinita_dwivedi , If error is intermittent it has something to do with message processor. Are you on onprem / cloud ?

Also, Check similar question here. Keep us posted.

It’s on premise version 4.14.07.0

Please check the below community page if it helps.

https://community.apigee.com/questions/8894/target-server-for-secure-connection-throws-502-err.html

I tried adding SSLInfo to my targetendpoint as mentioned in https://community.apigee.com/questions/8894/target-server-for-secure-connection-throws-502-err.html, but it did not help. Also, I am getting error only for one API. There are other APIs deployed on same server and not once this issue is observed.

Hi Anil,

I tried saving a new revision of API proxy and deployed it. Now I am not getting EOF exception. My backend service is available and working fine but Apigee is giving Timeout Error as {“fault”:“{"detail":{"errorcode":"messaging.adaptors.http.flow.ServiceUnavailable"},"faultstring":"The Service is temporarily unavailable"}”}. What could be the possible root cause of this peculiar behavior?