erlang 错误phoenix应用程序在fly.io上发送电子邮件并重新发送

7jmck4yq  于 7个月前  发布在  Erlang
关注(0)|答案(1)|浏览(113)

我正在建立我公司的网站,所以我决定使用重新发送邮件。
在本地。一切正常,但当我把我的网站上生产,重新发送API不工作,哨兵显示我下面的错误。
mi config is:elixir Version:1.15.4(compiled with Erlang/OTP 26)Phoenix:1.7.7 resend:0.4
第一个月
pubkey_os_cacerts.erl in :pubkey_os_cacerts.get/0 at line 38httpc.erl in :httpc.ssl_verify_host_options/1 at line 476httpc.erl in anonymous fn/0 in :httpc.http_options_default/0 at line 1015httpc.erl in :httpc.http_options/3 at line 961httpc.erl in :httpc.handle_request/9 at line 771lib/tesla/adapter/httpc.ex in Tesla.Adapter.Httpc.request/2 at line 52lib/tesla/adapter/httpc.ex in Tesla.Adapter.Httpc.call/2 at line 22lib/tesla/middleware/json.ex in Tesla.Middleware.JSON.call/3 at line 54
我需要发送一封电子邮件,本地工程和改变swoosh到一个简单的重新发送apis与POST方法,但本地继续工作,并在生产继续失败

uemypmqf

uemypmqf1#

根据this issue reported on the otp和错误消息的内容判断,您的生产机器缺少根证书文件。该错误在OTP文档中进行了描述。
如果加载了受信任的CA证书,则返回受信任的CA证书,否则使用cacetone_load/0加载它们。如果无法加载cacetone,则函数失败。
您需要在计算机上安装CA证书。

相关问题