Mail is in timeout and have to reconnect #30

Closed
opened 2023-05-09 10:11:03 +00:00 by crimsen · 1 comment
Owner
[2023-05-09 10:09:15,642] ERROR - please run connect() first
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/usr/local/lib/python3.10/site-packages/flaschengeist/plugins/users/__init__.py", line 55, in 
register                 
    return make_response(jsonify(userController.register(data)), CREATED)
  File "/usr/local/lib/python3.10/site-packages/flaschengeist/controller/userController.py", line 258,
 in register             
    messageController.send_message(messageController.Message(user, text, subject))
  File "/usr/local/lib/python3.10/site-packages/flaschengeist/utils/hook.py", line 28, in wrapped
    f(*args, hook_result=result, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/flaschengeist/plugins/message_mail.py", line 31, in du
mmy_send                 
    self.send_mail(msg)
  File "/usr/local/lib/python3.10/site-packages/flaschengeist/plugins/message_mail.py", line 55, in se
nd_mail                  
    self.smtp.sendmail(self.mail, recipients, mail.as_string())
  File "/usr/local/lib/python3.10/smtplib.py", line 881, in sendmail
    (code, resp) = self.mail(from_addr, esmtp_opts) 
  File "/usr/local/lib/python3.10/smtplib.py", line 545, in mail
    self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))
  File "/usr/local/lib/python3.10/smtplib.py", line 378, in putcmd
    self.send(f'{s}{CRLF}')
  File "/usr/local/lib/python3.10/smtplib.py", line 365, in send
    raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first
``` [2023-05-09 10:09:15,642] ERROR - please run connect() first Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/usr/local/lib/python3.10/site-packages/flaschengeist/plugins/users/__init__.py", line 55, in register return make_response(jsonify(userController.register(data)), CREATED) File "/usr/local/lib/python3.10/site-packages/flaschengeist/controller/userController.py", line 258, in register messageController.send_message(messageController.Message(user, text, subject)) File "/usr/local/lib/python3.10/site-packages/flaschengeist/utils/hook.py", line 28, in wrapped f(*args, hook_result=result, **kwargs) File "/usr/local/lib/python3.10/site-packages/flaschengeist/plugins/message_mail.py", line 31, in du mmy_send self.send_mail(msg) File "/usr/local/lib/python3.10/site-packages/flaschengeist/plugins/message_mail.py", line 55, in se nd_mail self.smtp.sendmail(self.mail, recipients, mail.as_string()) File "/usr/local/lib/python3.10/smtplib.py", line 881, in sendmail (code, resp) = self.mail(from_addr, esmtp_opts) File "/usr/local/lib/python3.10/smtplib.py", line 545, in mail self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist)) File "/usr/local/lib/python3.10/smtplib.py", line 378, in putcmd self.send(f'{s}{CRLF}') File "/usr/local/lib/python3.10/smtplib.py", line 365, in send raise SMTPServerDisconnected('please run connect() first') smtplib.SMTPServerDisconnected: please run connect() first ```
crimsen added this to the v2.0-beta milestone 2023-05-09 10:11:03 +00:00
crimsen added the
🐞 bug
🎒 backend
labels 2023-05-09 10:11:03 +00:00
crimsen self-assigned this 2023-05-09 10:11:03 +00:00
Author
Owner

fixed in commit d8028c4681

when sending mail, a context is created which connect to mail-server

fixed in commit d8028c46812e7045706f6c59966095cc54e0c09c when sending mail, a context is created which connect to mail-server
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Flaschengeist/flaschengeist#30
No description provided.