How to debug/trace logs of 504 Gateway Timeouts

Not applicable

We're using cloud version of Edge and our clients reported they get HTTP 504 sometimes when requesting both /oauth/ endpoints and our proxies endpoints.

But I cannot see any errors on proxy analytics pages or in Node.js logs. How can I check if there were any errors occured on the higher levels (MP, router, etc.)?

0 1 394
1 REPLY 1

Hi Sergei,

Currently the router and MP logs are not directly accessible for public cloud customers.

There is a default router timeout of 57 seconds, so one thing you may want to check in your Analytics reports is whether you have any requests which have response times of 57s or more (use "Max" Aggregate Function for both "Total Response Time", and "Target Response Time" in a custom report), and check if the times when you get those match with when your customers see issues.

There are some things you can use to narrow things down such as checking Request, and Response Processing times but you may have to open a Support case to get additional information.

If only your proxies with node.js target are affected, you may want to look into the following:

https://community.apigee.com/articles/6490/nodejs-performance-tips-socket-pooling.html

Regards,

Karl