Skip to content

socket.gaierror: [Errno 8] nodename nor servname provided #78

@vladyslav2

Description

@vladyslav2
  • asyncpg version: 0.8.4
  • PostgreSQL version: 9.6
  • Python version: 3.6
  • Platform: MacOS
  • Do you use pgbouncer?: No
  • Do you use the wheel package or built locally
    (if locally, which version of Cython was used)?
    : locally, 0.25.2
  • Can you the issue be reproduced when running under
    uvloop?
    : Yes

Using wrk for test performance (wrk -t2 -c200 -d30s http://127.0.0.1:8080/)

i'm getting that error - and i'm not sure why its happening ...
Any particular reason why that happens ?

ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/aiohttp/web_server.py", line 61, in handle_request
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/aiohttp/web.py", line 249, in _handle
  File "/Users/admin/projects/gftornado/raisecapital/utilities/middleware/__init__.py", line 4, in middleware_handler
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/aiohttp/web_urldispatcher.py", line 663, in __await__
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/aiohttp/web_urldispatcher.py", line 658, in __iter__
  File "/Users/admin/projects/gftornado/raisecapital/utilities/views/__init__.py", line 265, in get
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/asyncpg/pool.py", line 139, in _acquire
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/asyncpg/pool.py", line 157, in _acquire_impl
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/asyncpg/pool.py", line 89, in _new_connection
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/asyncpg/connection.py", line 589, in connect
  File "/Users/admin/projects/gftornado/uv/lib/python3.6/site-packages/asyncpg/connection.py", line 583, in connect
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
  File "uvloop/loop.pyx", line 1510, in create_connection (uvloop/loop.c:29709)
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
INFO:aiohttp.access:127.0.0.1 - - [18/Feb/2017:18:33:46 +0000] "GET /2 HTTP/1.1" 500 141 "-" "-"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions