Web service returning HTTP/1.1 502 Bad Gateway

https://berry-rendering-service.onrender.com is returning HTTP/1.1 502 Bad Gateway error. However there is nothing suspicious in logs, server seems to be running.

curl http://localhost:3000/ in the shell works fine, so looks like Render problem.

Hi Vlad,

One of the ways in which we determine the HTTP port for a service is to send a HEAD request and wait for a response. It appears that the service in question is responding to HEAD requests in about 2.5 seconds. This is longer than our current threshold and hence the test request times out.

You can get around this issue by setting the PORT env var to the port number you’d like to listen on.( 3000 in this case)

1 Like