[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')
Solution:Jump to solution
just read the last half of this readme
https://github.com/brody192/reverse-proxy/blob/main/README.md...
16 Replies
Project ID:
87a4421b-da68-49d3-9022-f6d4731b847e
/aaaaaaaa/bbbbbbbbbbbbbb
??The endpoint is just masked.
ah lmao
what port does your app listen on?
:7241
the proc file
web: uvicorn main:app --host 0.0.0.0 --port $PORT
Solution
just read the last half of this readme
https://github.com/brody192/reverse-proxy/blob/main/README.md
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
show me the error please
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'))
you are still trying to connect to port 80, but you just told me that it's running on 7800
everytime the app deploys it gets a new random port.
Its a backend api service.
read the readme please, it covers that
I got it.
Thank you!
there we go
happy i could help
It helps if I read the whole page. 🙂 its been a long day. anyway thanks again.
haha no worries