502 error
sr0m
PROOP

a year ago

I am using a fastapi server, initialized using this:

if __name__ == "__main__":
    import uvicorn
    import os
    port = int(os.environ.get("PORT",8000))
    uvicorn.run(app, host="0.0.0.0", port=port)

When I try to access https://papayrollbe-staging.up.railway.app, I get a 502 gateway error. (I assume railway routes to the correct port).

Solved

3 Replies

brody
EMPLOYEE

a year ago


Status changed to Solved brody about 1 year ago


rohangathadi
FREE

7 months ago

I am trying to host my springboot application (with mysqldatabase and jsp pages for the frontend). I am using github repo for hosting. I am getting this same error again and again that is "502 Bad Request". Im doing all tings correct according to steps but still i dont understand whats wrong is happening. I am new in tech hsting a web for the first time. Can anyone help me with this ?


Status changed to Open Railway 7 months ago


rohangathadi

I am trying to host my springboot application (with mysqldatabase and jsp pages for the frontend). I am using github repo for hosting. I am getting this same error again and again that is "502 Bad Request". Im doing all tings correct according to steps but still i dont understand whats wrong is happening. I am new in tech hsting a web for the first time. Can anyone help me with this ?

brody
EMPLOYEE

7 months ago

Please open your own thread.


Status changed to Solved chandrika 7 months ago


Loading...