-
Notifications
You must be signed in to change notification settings - Fork 98
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
Error with SendSmtpEmail: 'NoneType' object has no attribute 'bio_read' #412
Comments
Seems related to scrapy/scrapy#3478 |
Spidermon uses
|
The analysis makes sense. Blocking until the deferred finishes should be fine if the code allows doing it easily. |
It doesn't look trivial to block on a deferred or rebuild spidermon to support async code, so we should change the current action to use some other smtp library like https://docs.python.org/3/library/smtplib.html instead. |
Rebuild spidermon to support async code would be a Spidermon 2.0 change. I don't think we are considering this in short term 😄 Using blocking Python stlib |
Description
When using the
SendSmtpEmail
class from Spidermon, even though the email is sent successfully, an error is thrown by the Twisted framework. I followed the syntax from the latest Spidermon docs.Code
Spidermon Email configuration (in settings.py)
Error Logs
Environment
Scrapy Version: 2.10.0
Spidermon Version: 1.19.0
Twisted Version: 22.10.0
Python Version: 3.9
OS: WSL2 (Ubuntu 22.04)
The text was updated successfully, but these errors were encountered: