Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "app.py", line 19, in <module>
- from handlers import dp
- File "/src/handlers/__init__.py", line 1, in <module>
- from .errors import dp
- File "/src/handlers/errors/__init__.py", line 1, in <module>
- from .error_handler import dp
- File "/src/handlers/errors/error_handler.py", line 3, in <module>
- from loader import dp
- File "/src/loader.py", line 20, in <module>
- db = dp.loop.run_until_complete(create_pool())
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
- return future.result()
- File "/src/sql.py", line 26, in create_pool
- host="db")
- File "/usr/local/lib/python3.7/site-packages/asyncpg/pool.py", line 398, in _async__init__
- await self._initialize()
- File "/usr/local/lib/python3.7/site-packages/asyncpg/pool.py", line 426, in _initialize
- await first_ch.connect()
- File "/usr/local/lib/python3.7/site-packages/asyncpg/pool.py", line 125, in connect
- self._con = await self._pool._get_new_connection()
- File "/usr/local/lib/python3.7/site-packages/asyncpg/pool.py", line 472, in _get_new_connection
- **self._connect_kwargs)
- File "/usr/local/lib/python3.7/site-packages/asyncpg/connection.py", line 1727, in connect
- max_cacheable_statement_size=max_cacheable_statement_size)
- File "/usr/local/lib/python3.7/site-packages/asyncpg/connect_utils.py", line 674, in _connect
- raise last_error
- File "/usr/local/lib/python3.7/site-packages/asyncpg/connect_utils.py", line 666, in _connect
- connection_class=connection_class)
- File "/usr/local/lib/python3.7/site-packages/asyncpg/connect_utils.py", line 633, in _connect_addr
- connector, timeout=timeout)
- File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
- return fut.result()
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 913, in create_connection
- type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1290, in _ensure_resolved
- proto=proto, flags=flags)
- File "/usr/local/lib/python3.7/asyncio/base_events.py", line 792, in getaddrinfo
- None, getaddr_func, host, port, family, type, proto, flags)
- File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
Advertisement
Add Comment
Please, Sign In to add comment