R
Railway•16mo ago
RealTylerBurr

[Errno 111] Connection refused') with .railway.internal fqdn.

requests.exceptions.ConnectionError: HTTPConnectionPool(host='xxxxxxxx.railway.internal', port=80): Max retries exceeded with url: /aaaaaaaa/bbbbbbbbbbbbbb (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d858bcfa0>: Failed to establish a new connection: [Errno 111] Connection refused')
16 Replies
Percy
Percy•16mo ago
Project ID: 87a4421b-da68-49d3-9022-f6d4731b847e
Brody
Brody•16mo ago
/aaaaaaaa/bbbbbbbbbbbbbb ??
RealTylerBurr
RealTylerBurrOP•16mo ago
The endpoint is just masked.
Brody
Brody•16mo ago
ah lmao what port does your app listen on?
RealTylerBurr
RealTylerBurrOP•16mo ago
:7241 the proc file web: uvicorn main:app --host 0.0.0.0 --port $PORT
Solution
Brody
Brody•16mo ago
RealTylerBurr
RealTylerBurrOP•16mo ago
having same issue. I even switched to hypercorn but same connection refused error. [2023-08-16 22:37:53 +0000] [11] [INFO] Running on http://[::]:7800
Brody
Brody•16mo ago
show me the error please
RealTylerBurr
RealTylerBurrOP•16mo ago
requests.exceptions.ConnectionError: HTTPConnectionPool(host='aaaaaaa.railway.internal', port=80): Max retries exceeded with url: /bbbbbb/ccccccccc(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1336df8e20>: Failed to establish a new connection: [Errno 111] Connection refused'))
Brody
Brody•16mo ago
you are still trying to connect to port 80, but you just told me that it's running on 7800
RealTylerBurr
RealTylerBurrOP•16mo ago
everytime the app deploys it gets a new random port. Its a backend api service.
Brody
Brody•16mo ago
read the readme please, it covers that
RealTylerBurr
RealTylerBurrOP•16mo ago
I got it. Thank you!
Brody
Brody•16mo ago
there we go happy i could help
RealTylerBurr
RealTylerBurrOP•16mo ago
It helps if I read the whole page. 🙂 its been a long day. anyway thanks again.
Brody
Brody•16mo ago
haha no worries
Want results from more Discord servers?
Add your server