HTTP 504 and message successful

Not applicable

Hi API Experts,

Please can you provide guidance for the issue I am facing in following scenario related to APIGEE(On Premise)

Scenario is : Source system access APIGEE API and the protocol is SOAP. APIGEE forwards the message to Target application.

In the above scenario sometimes Source system is getting HTTP 504 error when trying to post the message via API. In the API dashboard I can see Proxy error as well. However even after getting HTTP 504 error the message is being transferred by the API to target system. So this is giving wrong signal to source application, they are thinking message didn't reach target application as they got HTTP 504 error and they are trying to repost the same message again. In such scenario it is creating duplicate messages in target system.

  1. Firstly, how can we handle the above situation?
  2. Secondly, How can we ensure that message is not forwarded to target application when APIGEE sends HTTP 504
  3. Finally, Where can I find the logs for such error?

Thanks

0 4 171
4 REPLIES 4

Not applicable

It may be possible that the backend is taking more time to respond, and Apigee is times out in the meanwhile, and sends the 504 to the client. If that is the case, you should be able to catch that scenario in the trace, and increasing the HTTP timeout can help.

Former Community Member
Not applicable

Hi @APIGEE API as @Sandeep Murusupalli mentioned it sounds like your backend target is taking a long time to respond.

Please see this link on how to change the HTTP timeout issue.

Hi @Prithpal Bhogill the link you have shared is helpful.

Not applicable

Thanks @Sandeep Murusupalli . I think your suggestion is helpful. I will confirm once the issue is tested and resolved.