504 timeout within edgemicro?

I'm troubleshooting a timeout issue, I got some edgemicro logs like these:

Apr 08 17:26:35 SCDCI0000153 docker[44512]: 1554715595700 error oauth m=POST, u=/api h=hostname.com, r=::ffff:172.17.0.1:56474, s=504
Apr 08 17:26:35 SCDCI0000153 docker[44512]: 1554715595700 error m=POST, u=/api, h=hostname.com, r=::ffff:172.17.0.1:56474, s=504, name=undefined, message=undefined, code=undefined, stack=undefined

I tried edgemicro on my local host, if I don't set `request_timeout`, edgemicro will wait for response even 5 minutes or more, if I set `request_timeout`, it will shut down the connection and record a 504 log, but the message field will not be underfine, so I'm not sure whether this log means edgemicro wait for backend response timeout or edgemicro internal timeout.

When 504 error occurs, if we restart edgemicro, it works fine again, and I can't find any logs on backend access log, but I don't know how to debug further, use DEBUG mode?

current nodejs version is v10.15.0
current edgemicro version is 2.5.30
0 1 139
1 REPLY 1

I'm not sure oauth plugin output 504 or backend output 504?