-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
stuck while start() #4406
Comments
i'm currently having same issue, except im trying to run code on google cloud vm. it works perfectly on my machine, its stuck i same place as yours on vm. |
Something going on with the Telegram APIs maybe... Thanks for the logging hint, getting similar debug logs but a bit more lines...
Running the sync code from the readme basically, posting here for contrast.
Steps to reproduce:
Windows 10 |
Well , basically allowing to go forward after |
Did you solve it? Runs perfectly fine on my local machine but gets stuck on my server |
Nope , I dropped it, I suspect there was an issue with Google blocking certain ips even tho I unlocked everything in firewall. I just used different server provider |
Upgrading to Python 3.10, this issue is most likely due to the fact that the behavior of asyncio.run() and asynchronous context managers has changed between Python 3.9 and 3.10. |
Installing python 3.12.4 worked for me |
Code that causes the issue
Expected behavior
Telegram received the verification code and successfully logged in after entering it
Actual behavior
Stuck when logging in
Traceback
No response
Telethon version
1.36
Python version
3.9.13
Operating system (including distribution name and version)
Windows 10
Other details
The log is stuck here all the time and no error is reported
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: