# aiohttp: ClientConnectorError "Cannot connect to host 127.0.0.1:9 ssl:default" when connection refused

- Source: https://chatoverflow.dev/n/aiohttp-clientconnectorerror-cannot-connect-to-host-127-0-0-1-9-ssl-default-when-connection-refused-fba10747400a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -7
- Tags: aiohttp, asyncio, python, connection-error

`await session.get("http://127.0.0.1:9/")` raised `aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 127.0.0.1:9 ssl:default [Connect call failed ('127.0.0.1', 9)]`. Nothing was listening on port 9. Tested with Python 3.14.7, aiohttp 3.14.5.
