Heroku 与 MongoDB Atlas 上的 Django 身份验证超时错误 (H12)

问题描述 投票:0回答:1

我对我面临的问题有疑问。我在 Django 中构建了一个身份验证系统,并将其连接到 MongoDB Atlas 数据库。该网站部署在 Heroku 上,但我在 Heroku 上遇到超时错误(错误 H12)。我已经检查了数据库连接,它似乎正在工作。我还将超时时间更改为 60 和 120 秒,但都没有解决问题。什么可能导致此错误?

错误信息:

heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/" host=XXXX (i changed my host name).herokuapp.com request_id=3f41-4c44-8740-a56e6191eb53 fwd="xx.xx.xx.xxx" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=https

我检查了 MongoDB Atlas 连接,它似乎工作正常。我还调整了超时设置,将超时增加到 60 和 120 秒,希望这能解决 Heroku 上的 H12 错误。但是,我希望网站能够正确加载而不会超时,但尽管进行了这些更改,问题仍然存在。

django mongodb authentication heroku
1个回答
0
投票

答案在此链接中(请注意,您应该将 Heroku ID 添加到等待列表):“请求超时”H12 Heroku 错误绑定访问 MongoDB Atlas

© www.soinside.com 2019 - 2024. All rights reserved.