Skip to content
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

Send mail error some times #4

Open
pytomtoto opened this issue Mar 20, 2019 · 0 comments
Open

Send mail error some times #4

pytomtoto opened this issue Mar 20, 2019 · 0 comments

Comments

@pytomtoto
Copy link

pytomtoto commented Mar 20, 2019

"Traceback (most recent call last):
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 251, in _readline
read_task, timeout, loop=self._loop
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\asyncio\tasks.py", line 384, in wait_for
return await fut
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\asyncio\streams.py", line 585, in readuntil
raise IncompleteReadError(chunk, None)
asyncio.streams.IncompleteReadError: 0 bytes read on a total of None expected bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "F:\tmp\alter-svc\api\views\mail_view.py", line 26, in send_simple
content=data['content'],
File "E:\code\alter_svc\venv\lib\site-packages\sanic_mail.py", line 143, in send_email
return await self.smtp.send_message(message)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\smtp.py", line 235, in send_message
result = await self.sendmail(sender, recipients, flat_message, timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\smtp.py", line 153, in sendmail
await self.mail(sender, options=mail_options, timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\esmtp.py", line 228, in mail
b"MAIL", from_string, *options_bytes, timeout=timeout
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\connection.py", line 288, in execute_command
*args, timeout=timeout
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 187, in execute_command
response = await self.read_response(timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 127, in read_response
line = await self._readline(timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 262, in _readline
raise SMTPServerDisconnected("Unexpected EOF received")
aiosmtplib.errors.SMTPServerDisconnected: Unexpected EOF received
"

python 3.7
sanic 18.12.0
sanic-mail 0.0.2
aiosmtplib 1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant