Getting bad gateway issue after deploying fastapi webapp
bishalkumardas
HOBBYOP

4 days ago

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:
fvj5kqBPRoGfntKdss7a6g

{ "requestId": "fvj5kqBPRoGfntKdss7a6g", "timestamp": "2026-03-01T09:33:40.487059167Z", "method": "GET", "path": "/", "host": "budasai-production.up.railway.app", "httpStatus": 502, "upstreamProto": "", "downstreamProto": "HTTP/1.1", "responseDetails": "Retried single replica", "totalDuration": 170, "upstreamAddress": "", "clientUa": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36", "upstreamRqDuration": 20, "txBytes": 4682, "rxBytes": 1087, "srcIp": "94.202.88.171", "edgeRegion": "europe-west4-drams3a", "upstreamErrors": "[{\"deploymentInstanceID\":\"0d35181e-89e5-4c79-832f-a4fcc9791669\",\"error\":\"connection refused\",\"duration\":5},{\"deploymentInstanceID\":\"0d35181e-89e5-4c79-832f-a4fcc9791669\",\"error\":\"connection refused\",\"duration\":6},{\"deploymentInstanceID\":\"0d35181e-89e5-4c79-832f-a4fcc9791669\",\"error\":\"connection refused\",\"duration\":9}]" }
{ "requestId": "NpaeWInyTwOLBgizss7a6g", "timestamp": "2026-03-01T09:33:40.800703888Z", "method": "GET", "path": "/favicon.ico", "host": "budasai-production.up.railway.app", "httpStatus": 502, "upstreamProto": "", "downstreamProto": "HTTP/1.1", "responseDetails": "Retried single replica", "totalDuration": 18, "upstreamAddress": "", "clientUa": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36", "upstreamRqDuration": 17, "txBytes": 109, "rxBytes": 1033, "srcIp": "94.202.88.171", "edgeRegion": "europe-west4-drams3a", "upstreamErrors": "[{\"deploymentInstanceID\":\"0d35181e-89e5-4c79-832f-a4fcc9791669\",\"error\":\"connection refused\",\"duration\":5},{\"deploymentInstanceID\":\"0d35181e-89e5-4c79-832f-a4fcc9791669\",\"error\":\"connection refused\",\"duration\":5},{\"deploymentInstanceID\":\"0d35181e-89e5-4c79-832f-a4fcc9791669\",\"error\":\"connection refused\",\"duration\":7}]" }
http logs

$10 Bounty

1 Replies

Status changed to Awaiting Railway Response Railway 4 days ago


Make sure the port your URL is mapped to is the same port your application is listening to.

Also, make sure the app is listening on 0.0.0.0 (IPv4) instead of :: (IPv6).


Loading...