Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- ConnectTimeout Traceback (most recent call last)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_transports/default.py:101, in map_httpcore_exceptions()
- 100 try:
- --> 101 yield
- 102 except Exception as exc:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_transports/default.py:394, in AsyncHTTPTransport.handle_async_request(self, request)
- 393 with map_httpcore_exceptions():
- --> 394 resp = await self._pool.handle_async_request(req)
- 396 assert isinstance(resp.stream, typing.AsyncIterable)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_async/connection_pool.py:256, in AsyncConnectionPool.handle_async_request(self, request)
- 255 await self._close_connections(closing)
- --> 256 raise exc from None
- 258 # Return the response. Note that in this case we still have to manage
- 259 # the point at which the response is closed.
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_async/connection_pool.py:236, in AsyncConnectionPool.handle_async_request(self, request)
- 234 try:
- 235 # Send the request on the assigned connection.
- --> 236 response = await connection.handle_async_request(
- 237 pool_request.request
- 238 )
- 239 except ConnectionNotAvailable:
- 240 # In some cases a connection may initially be available to
- 241 # handle a request, but then become unavailable.
- 242 #
- 243 # In this case we clear the connection and try again.
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_async/connection.py:101, in AsyncHTTPConnection.handle_async_request(self, request)
- 100 self._connect_failed = True
- --> 101 raise exc
- 103 return await self._connection.handle_async_request(request)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_async/connection.py:78, in AsyncHTTPConnection.handle_async_request(self, request)
- 77 if self._connection is None:
- ---> 78 stream = await self._connect(request)
- 80 ssl_object = stream.get_extra_info("ssl_object")
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_async/connection.py:124, in AsyncHTTPConnection._connect(self, request)
- 123 async with Trace("connect_tcp", logger, request, kwargs) as trace:
- --> 124 stream = await self._network_backend.connect_tcp(**kwargs)
- 125 trace.return_value = stream
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_backends/auto.py:31, in AutoBackend.connect_tcp(self, host, port, timeout, local_address, socket_options)
- 30 await self._init_backend()
- ---> 31 return await self._backend.connect_tcp(
- 32 host,
- 33 port,
- 34 timeout=timeout,
- 35 local_address=local_address,
- 36 socket_options=socket_options,
- 37 )
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_backends/anyio.py:122, in AnyIOBackend.connect_tcp(self, host, port, timeout, local_address, socket_options)
- 121 for option in socket_options:
- --> 122 stream._raw_socket.setsockopt(*option) # type: ignore[attr-defined] # pragma: no cover
- 123 return AnyIOStream(stream)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/contextlib.py:131, in _GeneratorContextManager.__exit__(self, type, value, traceback)
- 130 try:
- --> 131 self.gen.throw(type, value, traceback)
- 132 except StopIteration as exc:
- 133 # Suppress StopIteration *unless* it's the same exception that
- 134 # was passed to throw(). This prevents a StopIteration
- 135 # raised inside the "with" statement from being suppressed.
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_exceptions.py:14, in map_exceptions(map)
- 13 if isinstance(exc, from_exc):
- ---> 14 raise to_exc(exc) from exc
- 15 raise
- ConnectTimeout:
- The above exception was the direct cause of the following exception:
- ConnectTimeout Traceback (most recent call last)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/request/_httpxrequest.py:292, in HTTPXRequest.do_request(self, url, method, request_data, read_timeout, write_timeout, connect_timeout, pool_timeout)
- 291 try:
- --> 292 res = await self._client.request(
- 293 method=method,
- 294 url=url,
- 295 headers={"User-Agent": self.USER_AGENT},
- 296 timeout=timeout,
- 297 files=files,
- 298 data=data,
- 299 )
- 300 except httpx.TimeoutException as err:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_client.py:1540, in AsyncClient.request(self, method, url, content, data, files, json, params, headers, cookies, auth, follow_redirects, timeout, extensions)
- 1527 request = self.build_request(
- 1528 method=method,
- 1529 url=url,
- (...)
- 1538 extensions=extensions,
- 1539 )
- -> 1540 return await self.send(request, auth=auth, follow_redirects=follow_redirects)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_client.py:1629, in AsyncClient.send(self, request, stream, auth, follow_redirects)
- 1627 auth = self._build_request_auth(request, auth)
- -> 1629 response = await self._send_handling_auth(
- 1630 request,
- 1631 auth=auth,
- 1632 follow_redirects=follow_redirects,
- 1633 history=[],
- 1634 )
- 1635 try:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_client.py:1657, in AsyncClient._send_handling_auth(self, request, auth, follow_redirects, history)
- 1656 while True:
- -> 1657 response = await self._send_handling_redirects(
- 1658 request,
- 1659 follow_redirects=follow_redirects,
- 1660 history=history,
- 1661 )
- 1662 try:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_client.py:1694, in AsyncClient._send_handling_redirects(self, request, follow_redirects, history)
- 1692 await hook(request)
- -> 1694 response = await self._send_single_request(request)
- 1695 try:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_client.py:1730, in AsyncClient._send_single_request(self, request)
- 1729 with request_context(request=request):
- -> 1730 response = await transport.handle_async_request(request)
- 1732 assert isinstance(response.stream, AsyncByteStream)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_transports/default.py:394, in AsyncHTTPTransport.handle_async_request(self, request)
- 393 with map_httpcore_exceptions():
- --> 394 resp = await self._pool.handle_async_request(req)
- 396 assert isinstance(resp.stream, typing.AsyncIterable)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/contextlib.py:131, in _GeneratorContextManager.__exit__(self, type, value, traceback)
- 130 try:
- --> 131 self.gen.throw(type, value, traceback)
- 132 except StopIteration as exc:
- 133 # Suppress StopIteration *unless* it's the same exception that
- 134 # was passed to throw(). This prevents a StopIteration
- 135 # raised inside the "with" statement from being suppressed.
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpx/_transports/default.py:118, in map_httpcore_exceptions()
- 117 message = str(exc)
- --> 118 raise mapped_exc(message) from exc
- ConnectTimeout:
- The above exception was the direct cause of the following exception:
- TimedOut Traceback (most recent call last)
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/ext/_application.py:1079, in Application.__run(self, updater_coroutine, stop_signals, close_loop)
- 1078 try:
- -> 1079 loop.run_until_complete(self.initialize())
- 1080 if self.post_init:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/nest_asyncio.py:98, in _patch_loop.<locals>.run_until_complete(self, future)
- 96 raise RuntimeError(
- 97 'Event loop stopped before Future completed.')
- ---> 98 return f.result()
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/asyncio/futures.py:178, in Future.result(self)
- 177 if self._exception is not None:
- --> 178 raise self._exception
- 179 return self._result
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/asyncio/tasks.py:282, in Task.__step(***failed resolving arguments***)
- 281 else:
- --> 282 result = coro.throw(exc)
- 283 except StopIteration as exc:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/ext/_application.py:503, in Application.initialize(self)
- 501 return
- --> 503 await self.bot.initialize()
- 504 await self._update_processor.initialize()
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/ext/_extbot.py:301, in ExtBot.initialize(self)
- 300 await self.rate_limiter.initialize()
- --> 301 await super().initialize()
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/_bot.py:777, in Bot.initialize(self)
- 776 try:
- --> 777 await self.get_me()
- 778 except InvalidToken as exc:
- File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/ext/_extbot.py:1920, in ExtBot.get_me(self, read_timeout, write_timeout, connect_timeout, pool_timeout, api_kwargs, rate_limit_args)
- 1910 async def get_me(
- 1911 self,
- 1912 *,
- (...)
- 1918 rate_limit_args: Optional[RLARGS] = None,
- 1919 ) -> User:
- -> 1920 return await super().get_me(
- 1921 read_timeout=read_timeout,
- 1922 write_timeout=write_timeout,
- 1923 connect_timeout=connect_timeout,
- ...
- ---> 89 raise RuntimeError("Cannot close a running event loop")
- 90 if self.is_closed():
- 91 return
- RuntimeError: Cannot close a running event loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement