Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncio.run(main()) has error, how to resolve ? #94

Open
bobogavin opened this issue Jul 19, 2023 · 0 comments
Open

asyncio.run(main()) has error, how to resolve ? #94

bobogavin opened this issue Jul 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bobogavin
Copy link

Unhandled error while receiving data
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 574, in run_until_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 541, in run_forever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 1786, in _run_once
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File ".\TdataToSession.py", line 49, in main
exit(0)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\telethon\network\mtprotosender.py", line 505, in _recv_loop
body = await self._connection.recv()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\telethon\network\connection\connection.py", line 299, in recv
result, err = await self._recv_queue.get()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\queues.py", line 159, in get
await getter
concurrent.futures._base.CancelledError

@bobogavin bobogavin added the bug Something isn't working label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant