Cannot Reach FastAPI Server
agenovia
HOBBYOP

a year 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

brody
EMPLOYEE

a year ago

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


agenovia
HOBBYOP

a year 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.


brody
EMPLOYEE

a year ago

No problem.


Status changed to Solved brody about 1 year ago


Loading...