𝘬𝘒𝘱𝘱𝘺
𝘬𝘒𝘱𝘱𝘺
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
big thanks Brody, you are my hero πŸ˜„
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
i was experimenting with uvicorn so that's probably a leftover
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
cool, thanks
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
I need hypercorn
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
ah that's why
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
yes
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
but maybe the service settings got messed up?
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
Are you refering to the settings of the service? In the logs of the deployment the internal port of FastAPI is 8000
You reached the start of the range β†’ Oct 2, 2024 9:12 PM
WARNING: ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly.
INFO: Started server process [7]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
You reached the start of the range β†’ Oct 2, 2024 9:12 PM
WARNING: ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly.
INFO: Started server process [7]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
I use Railway's variables like this: http://${{enigmacollective_backend.RAILWAY_PRIVATE_DOMAIN}}:${{enigmacollective_backend.PORT}}
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
of FastAPI
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
Both services worked, as I printed the url and could see the docs
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
And this for requests:
File "/opt/venv/lib/python3.11/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='enigmacollective_backend.railway.internal', port=8000): Max retries exceeded with url: /guild_settings/1130063785005174785 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8767b2f290>: Failed to establish a new connection: [Errno 111] Connection refused'))
File "/opt/venv/lib/python3.11/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='enigmacollective_backend.railway.internal', port=8000): Max retries exceeded with url: /guild_settings/1130063785005174785 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8767b2f290>: Failed to establish a new connection: [Errno 111] Connection refused'))
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
The end of the log contains this message for httpx:
File "/opt/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/root/.nix-profile/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/opt/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
[INFO] client: Cleaning up tasks.
[INFO] client: Cleaning up after 2 tasks.
[INFO] client: All tasks finished cancelling.
[INFO] client: Closing the event loop.
File "/opt/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/root/.nix-profile/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/opt/venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
[INFO] client: Cleaning up tasks.
[INFO] client: Cleaning up after 2 tasks.
[INFO] client: All tasks finished cancelling.
[INFO] client: Closing the event loop.
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
Establishing connection with the httpx/requests to the service fails
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
Also want to note, using public or private networking seems to not make a difference, I can access the public one via browser but not with the service
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
ff816097-dff3-4925-9c7d-c91d0c42ee5b
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 6/12/2024 in #βœ‹ο½œhelp
Is a self-hosted mail service possible to host on Railway?
N/A
5 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 5/20/2024 in #βœ‹ο½œhelp
How to transform "docker run" commands into railway.json or Custom Start Command
N/A
5 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 4/15/2024 in #βœ‹ο½œhelp
SQLalchemy could not translate host name "postgres.railway.internal"
yup, that resolved it, thanks!
17 replies