bamthomas / aioimaplib

Python asyncio IMAP4rev1 client library
GNU General Public License v3.0
133 stars 59 forks source link

Python 3.9 - Task exception was never retrieved #66

Closed Lithimlin closed 1 year ago

Lithimlin commented 3 years ago

I just pulled the newest version of this library and I'm still getting the following error when using Python 3.9

Task exception was never retrieved
future: <Task finished name='Task-2' coro=<BaseEventLoop.create_connection() done, defined at /usr/lib/python3.9/asyncio/base_events.py:967> exception=gaierror(-2, 'Name or service not known')>

This is the same as already mentioned in https://github.com/bamthomas/aioimaplib/issues/59#issuecomment-820278251. To reproduce this, I simply ran the imap_fetch.py example provided.

bamthomas commented 3 years ago

it is because you have to replace imap.server account_id and password by your imap server and credientials.

I have tested it, there was an error because it was not using the new bytes type in Response. I have fixed the test, and it is working fine now.