Cannot Reach FastAPI Server

agenovia
HOBBY

8 months ago

After hours of troubleshooting and reading the docs, I switched from using uvicorn to hypercorn and now my custom start command in the settings is hypercorn main:app --bind "[::]:${PORT}"

In the deploy logs, I see [2024-12-09 01:14:02 +0000] [5] [INFO] Running on http://[::]:8080 (CTRL + C to quit)

The generated domain is backend-production-c8b2.up.railway.app and the port is correct (8080)

However, I still cannot get a response. It's driving me crazy. What am I missing?

Solved

3 Replies

8 months ago

I can access it just fine, I get an "OK" response after visiting the domain you linkend.


agenovia
HOBBY

8 months ago

That was a complete brainfart on my part. I had been trying to request backend-production-c8b2.up.railway.app:8080

Oof, long day. Anyway, I can access it now. Thank you.


8 months ago

No problem.


Status changed to Solved brody 8 months ago


Cannot Reach FastAPI Server - Railway Help Station