使用djrill发送邮件时出现以下错误。
app_1 | File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
app_1 | response = wrapped_callback(request, callback_args, *callback_kwargs)
app_1 | File "/code/invitations/views.py", line 102, in request_invite
app_1 | msg.send()
app_1 | File "/usr/local/lib/python2.7/site-packages/django/core/mail/message.py", line 303, in send
app_1 | return self.get_connection(fail_silently).send_messages([self])
app_1 | File "/usr/local/lib/python2.7/site-packages/djrill/mail/backends/djrill.py", line 81, in send_messages
app_1 | sent = self._send(message)
app_1 | File "/usr/local/lib/python2.7/site-packages/djrill/mail/backends/djrill.py", line 132, in _send
app_1 | response = requests.post(api_url, data=api_data)
app_1 | File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 109, in post
app_1 | return request('post', url, data=data, json=json, *kwargs)
app_1 | File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 50, in request
app_1 | response = session.request(method=method, url=url, *kwargs)
app_1 | File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
app_1 | resp = self.send(prep, *send_kwargs)
app_1 | File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
app_1 | r = adapter.send(request, *kwargs)
app_1 | File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 431, in send
app_1 | raise SSLError(e, request=request)
app_1 | SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
我怀疑这是python,openssl而不是Djrill的问题。该应用程序可以在另一台服务器上正常运行,所以我不知所措。
希望能为您解决此问题提供帮助
谢谢!
最佳答案
对于遇到此问题的其他任何人,请参考以下链接:
https://github.com/brack3t/Djrill/issues/101
再次感谢donspaulding