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).
3 Replies
a year ago
Please read this docs page - https://docs.railway.app/guides/fixing-common-errors
Status changed to Solved brody • 12 months ago
4 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 • 5 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 ?
4 months ago
Please open your own thread.
Status changed to Solved chandrika • 4 months ago