reinacchi
FREE
2 days ago
my rust axum api project keeps sending me a 502 bad gateway error when i can't seem to identify any issues at all.
2 Replies
(hoping someone could look through it. it was working normally a while ago until this unknown behaviour keeps happening)
smolpaw
HOBBYTop 10% Contributor
2 days ago
Did you change the port your api was listening on recently but forgot to update in the application dashboard ?
or the hostname it's listening on ? 127.0.0.1/localhost doesn't work, Go with either 0.0.0.0 or all interfaces (::).
502 means the railway proxy is unable to reach your application so you the cause would be around how the api is exposing itself.
smolpaw
HOBBYTop 10% Contributor
2 days ago
So when you recreated the service it would have detected the new port and set it to that. correct ?