4 months ago
Hello Railway Support Team,
I'm experiencing persistent 502 errors with a deployment that I've stripped down to the absolute minimum to isolate the issue. I would appreciate your help in identifying what's causing this problem.
Details of the Issue:
1. All requests to my application return 502 Bad Gateway
2. This occurs even with a minimal test deployment
3. The issue persists across multiple deployment attempts and configuration changes
Steps I've Taken to Isolate the Problem:
1. Created a minimal Python HTTP server with just a /liveness endpoint
2. Removed all dependencies except Python's built-in http.server
3. Explicitly configured port binding
4. Set up proper health checks
The server binds to 0.0.0.0 and uses the PORT environment variable
The configuration follows Railway's deployment guidelines
The Dockerfile and railway.toml are properly configured
The application works locally
Questions:
Are there any logs you can share that might show why the 502 errors are occurring?
Is there something specific about port configuration that I might be missing?
Are there any known issues with Python's built-in HTTP server on Railway?
Would you recommend any specific changes to my configuration?
Thanks,
Gonen
1 Replies
4 months ago
Hello,
You had your target port set incorrectly -
I've made this change for you, and you no longer get a 502, but instead, your application is returning a 404.
Best,
Brody
Status changed to Awaiting User Response railway[bot] • 4 months ago
Status changed to Solved brody • 4 months ago