You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this would be a good idea to handle in the main template, and shouldn't it to just try to reconnect rather than die completely?
Traceback (most recent call last):
File "main.py", line 98, in <module>
asyncio.get_event_loop().run_until_complete(main())
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "main.py", line 86, in main
await client.sync_forever(timeout=30000, full_state=True)
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/nio/client/async_client.py", line 1147, in sync_forever
await self.run_response_callbacks([await response])
File "/usr/lib/python3.7/asyncio/tasks.py", line 533, in _wait_for_one
return f.result() # May raise f.exception().
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/nio/client/async_client.py", line 1003, in sync
timeout,
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/nio/client/async_client.py", line 705, in _send
method, path, data, headers, trace_context, timeout,
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/nio/client/async_client.py", line 252, in wrapper
return await func(self, *args, **kwargs)
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/nio/client/async_client.py", line 781, in send
else timeout,
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/aiohttp/client.py", line 544, in _request
await resp.start(conn)
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 905, in start
self._continue = None
File "/home/sm/Github/dankbot/venv/lib/python3.7/site-packages/aiohttp/helpers.py", line 656, in __exit__
raise asyncio.TimeoutError from None
concurrent.futures._base.TimeoutError
The text was updated successfully, but these errors were encountered:
I have a bot that reaches that timeout after 60 seconds of executing a background processing. Is there a way to change that timeout for a longer period of time?
KevinLi
added a commit
to KevinLi/nio-template
that referenced
this issue
Oct 23, 2021
I think this would be a good idea to handle in the main template, and shouldn't it to just try to reconnect rather than die completely?
The text was updated successfully, but these errors were encountered: