2 months ago
502 Bad Gateway
Application failed to respond
This error appears to be caused by the application.
If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.
If you are a visitor, please contact the application owner or try again later.
Request ID:
mLiwfyKGQRmAlLoA5nX1uw
Build Logs: GOOD
Deployment Logs: GOOD
tried even migrating region from EU Amsterdam to US West, still getting 502 bad gateway.
PS: tried the following:
- revert work
- recreate the service on railway
- reassign region
7 Replies
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • about 2 months ago
2 months ago
Can you check what port is your app using?
2 months ago
the port is 8080.
also deleted the whole service and recreated, 502 Bad Gateway, same issue.
nothing has changed in the service configuration, not anything related to code, all services working as expected, also reverted many commits to no success.
bottom line, seem to be related to Railway gateway
2 months ago
Railway assigns its own port to your application and I think there's a mismatch between your app's port and Railway's gateway port. Check in your app's Networking settings to see which port railway is using
2 months ago
Is "Metal Build Environment" turned on? I was having a lot of issues with my app last month and turning it off fixed it for me.
2 months ago
it is OFF
2 months ago
internal issue,
after thorough investigation i found a module delaying the server init which caused a silent server hang.
it was not solved by commit reverts due to it being dependent on a DB query, which at some point become really slow when a DB table grew very large.
thread can be closed.
Status changed to Open ray-chen • about 2 months ago
Status changed to Solved ray-chen • about 2 months ago