gpt4 book ai didi

Python SSL 错误 - 使用 Mandrill/Djrill 发送电子邮件时出错

转载 作者:太空宇宙 更新时间:2023-11-03 14:52:49 24 4
gpt4 key购买 nike

我在使用 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

再次感谢donspulding

关于Python SSL 错误 - 使用 Mandrill/Djrill 发送电子邮件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32689161/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com