-
Notifications
You must be signed in to change notification settings - Fork 49
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
AttributeError: 'NoneType' object has no attribute 'readuntil' #37
Comments
Though I'm not positive about this, my first suspicion is it might have to do with starting and stopping the loop between every call. I would recommend first moving all of your code that uses the smtp object into an async function and then passing the invocation of that function into loop.run_until_complete(my_async_function(smtp)) |
Hello, thanks for your quick response. I have the same result with this code.
Have you an idea ? |
I can't reproduce error so far (testing with smtp.gmail.com). It seems like the server is dropping the connection without sending a response, but that should raise One quick thing, for STARTTLS connections, typically the port is 587, not 25. |
Yes, the server is dropping the connection without sending a response. I encountered this issue only with gmail. So, I will catch AttributeError exception. Thank for your help. |
Going to reopen this as a reminder to myself to add a test case for it. |
Can't reproduce this still. Closing. |
Hello,
I'm having trouble sending several emails in a loop. When I do so, I've got an error apparently spawning randomly. Do you have any ideas of what the issue is?
Please read the code below.
Python 3.6.5
aiosmtplib 1.0.2
Cheers,
Taslim42.
The text was updated successfully, but these errors were encountered: