Telethon icon indicating copy to clipboard operation
Telethon copied to clipboard

Infinity freeze

Open devopsalexandr opened this issue 3 months ago • 1 comments

Code that causes the issue

// work with ended session
async with client:
                await client.connect()
                me = await client.get_me()

Expected behavior

Error was thrown if you use ended session

Actual behavior

Infinity freeze if you use ended session

Traceback

No response

Telethon version

1.32.1

Python version

3.9

Operating system (including distribution name and version)

Windows 11

Other details

telethon.network.mtprotosender:Connection closed while receiving data: 4 bytes read on a total of 8 expected bytes

Checklist

  • [X] The error is in the library's code, and not in my own.
  • [X] I have searched for this issue before posting it and there isn't an open duplicate.
  • [X] I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.

devopsalexandr avatar Mar 10 '24 18:03 devopsalexandr