Advertisement
kopyl

Untitled

Dec 8th, 2024
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.78 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ConnectTimeout Traceback (most recent call last)
  3. 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()
  4. 100 try:
  5. --> 101 yield
  6. 102 except Exception as exc:
  7.  
  8. 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)
  9. 393 with map_httpcore_exceptions():
  10. --> 394 resp = await self._pool.handle_async_request(req)
  11. 396 assert isinstance(resp.stream, typing.AsyncIterable)
  12.  
  13. 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)
  14. 255 await self._close_connections(closing)
  15. --> 256 raise exc from None
  16. 258 # Return the response. Note that in this case we still have to manage
  17. 259 # the point at which the response is closed.
  18.  
  19. 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)
  20. 234 try:
  21. 235 # Send the request on the assigned connection.
  22. --> 236 response = await connection.handle_async_request(
  23. 237 pool_request.request
  24. 238 )
  25. 239 except ConnectionNotAvailable:
  26. 240 # In some cases a connection may initially be available to
  27. 241 # handle a request, but then become unavailable.
  28. 242 #
  29. 243 # In this case we clear the connection and try again.
  30.  
  31. 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)
  32. 100 self._connect_failed = True
  33. --> 101 raise exc
  34. 103 return await self._connection.handle_async_request(request)
  35.  
  36. 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)
  37. 77 if self._connection is None:
  38. ---> 78 stream = await self._connect(request)
  39. 80 ssl_object = stream.get_extra_info("ssl_object")
  40.  
  41. 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)
  42. 123 async with Trace("connect_tcp", logger, request, kwargs) as trace:
  43. --> 124 stream = await self._network_backend.connect_tcp(**kwargs)
  44. 125 trace.return_value = stream
  45.  
  46. 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)
  47. 30 await self._init_backend()
  48. ---> 31 return await self._backend.connect_tcp(
  49. 32 host,
  50. 33 port,
  51. 34 timeout=timeout,
  52. 35 local_address=local_address,
  53. 36 socket_options=socket_options,
  54. 37 )
  55.  
  56. 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)
  57. 121 for option in socket_options:
  58. --> 122 stream._raw_socket.setsockopt(*option) # type: ignore[attr-defined] # pragma: no cover
  59. 123 return AnyIOStream(stream)
  60.  
  61. File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/contextlib.py:131, in _GeneratorContextManager.__exit__(self, type, value, traceback)
  62. 130 try:
  63. --> 131 self.gen.throw(type, value, traceback)
  64. 132 except StopIteration as exc:
  65. 133 # Suppress StopIteration *unless* it's the same exception that
  66. 134 # was passed to throw(). This prevents a StopIteration
  67. 135 # raised inside the "with" statement from being suppressed.
  68.  
  69. File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/httpcore/_exceptions.py:14, in map_exceptions(map)
  70. 13 if isinstance(exc, from_exc):
  71. ---> 14 raise to_exc(exc) from exc
  72. 15 raise
  73.  
  74. ConnectTimeout:
  75.  
  76. The above exception was the direct cause of the following exception:
  77.  
  78. ConnectTimeout Traceback (most recent call last)
  79. 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)
  80. 291 try:
  81. --> 292 res = await self._client.request(
  82. 293 method=method,
  83. 294 url=url,
  84. 295 headers={"User-Agent": self.USER_AGENT},
  85. 296 timeout=timeout,
  86. 297 files=files,
  87. 298 data=data,
  88. 299 )
  89. 300 except httpx.TimeoutException as err:
  90.  
  91. 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)
  92. 1527 request = self.build_request(
  93. 1528 method=method,
  94. 1529 url=url,
  95. (...)
  96. 1538 extensions=extensions,
  97. 1539 )
  98. -> 1540 return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  99.  
  100. 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)
  101. 1627 auth = self._build_request_auth(request, auth)
  102. -> 1629 response = await self._send_handling_auth(
  103. 1630 request,
  104. 1631 auth=auth,
  105. 1632 follow_redirects=follow_redirects,
  106. 1633 history=[],
  107. 1634 )
  108. 1635 try:
  109.  
  110. 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)
  111. 1656 while True:
  112. -> 1657 response = await self._send_handling_redirects(
  113. 1658 request,
  114. 1659 follow_redirects=follow_redirects,
  115. 1660 history=history,
  116. 1661 )
  117. 1662 try:
  118.  
  119. 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)
  120. 1692 await hook(request)
  121. -> 1694 response = await self._send_single_request(request)
  122. 1695 try:
  123.  
  124. 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)
  125. 1729 with request_context(request=request):
  126. -> 1730 response = await transport.handle_async_request(request)
  127. 1732 assert isinstance(response.stream, AsyncByteStream)
  128.  
  129. 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)
  130. 393 with map_httpcore_exceptions():
  131. --> 394 resp = await self._pool.handle_async_request(req)
  132. 396 assert isinstance(resp.stream, typing.AsyncIterable)
  133.  
  134. File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/contextlib.py:131, in _GeneratorContextManager.__exit__(self, type, value, traceback)
  135. 130 try:
  136. --> 131 self.gen.throw(type, value, traceback)
  137. 132 except StopIteration as exc:
  138. 133 # Suppress StopIteration *unless* it's the same exception that
  139. 134 # was passed to throw(). This prevents a StopIteration
  140. 135 # raised inside the "with" statement from being suppressed.
  141.  
  142. 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()
  143. 117 message = str(exc)
  144. --> 118 raise mapped_exc(message) from exc
  145.  
  146. ConnectTimeout:
  147.  
  148. The above exception was the direct cause of the following exception:
  149.  
  150. TimedOut Traceback (most recent call last)
  151. 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)
  152. 1078 try:
  153. -> 1079 loop.run_until_complete(self.initialize())
  154. 1080 if self.post_init:
  155.  
  156. 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)
  157. 96 raise RuntimeError(
  158. 97 'Event loop stopped before Future completed.')
  159. ---> 98 return f.result()
  160.  
  161. File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/asyncio/futures.py:178, in Future.result(self)
  162. 177 if self._exception is not None:
  163. --> 178 raise self._exception
  164. 179 return self._result
  165.  
  166. File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/asyncio/tasks.py:282, in Task.__step(***failed resolving arguments***)
  167. 281 else:
  168. --> 282 result = coro.throw(exc)
  169. 283 except StopIteration as exc:
  170.  
  171. 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)
  172. 501 return
  173. --> 503 await self.bot.initialize()
  174. 504 await self._update_processor.initialize()
  175.  
  176. 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)
  177. 300 await self.rate_limiter.initialize()
  178. --> 301 await super().initialize()
  179.  
  180. File ~/Dropbox/Development/AI/AI code/docker-flux-fill-bot/.conda/lib/python3.8/site-packages/telegram/_bot.py:777, in Bot.initialize(self)
  181. 776 try:
  182. --> 777 await self.get_me()
  183. 778 except InvalidToken as exc:
  184.  
  185. 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)
  186. 1910 async def get_me(
  187. 1911 self,
  188. 1912 *,
  189. (...)
  190. 1918 rate_limit_args: Optional[RLARGS] = None,
  191. 1919 ) -> User:
  192. -> 1920 return await super().get_me(
  193. 1921 read_timeout=read_timeout,
  194. 1922 write_timeout=write_timeout,
  195. 1923 connect_timeout=connect_timeout,
  196. ...
  197. ---> 89 raise RuntimeError("Cannot close a running event loop")
  198. 90 if self.is_closed():
  199. 91 return
  200.  
  201. RuntimeError: Cannot close a running event loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement