Mongodb + Atlas: 'bad auth Authentication failed.', code: 8000,
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
调研方向
该错误是 PyMongo 导致的 MongoDB Atlas 身份验证失败。检查 bot 的数据库连接配置,可能位于配置文件或环境变量中。验证 MongoDB URI、用户名、密码和 IP 白名单设置。使用相同的凭据在本地测试连接,以隔离问题。
由索引模型根据 Issue 内容生成。
描述
2022-07-18T07:55:02.112667+00:00 app[worker.1]: return _authenticate_scram(credentials, sock_info, "SCRAM-SHA-1")
2022-07-18T07:55:02.112667+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/auth.py", line 241, in _authenticate_scram
2022-07-18T07:55:02.112667+00:00 app[worker.1]: res = sock_info.command(source, cmd)
2022-07-18T07:55:02.112667+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/pool.py", line 743, in command
2022-07-18T07:55:02.112668+00:00 app[worker.1]: return command(
2022-07-18T07:55:02.112668+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/network.py", line 160, in command
2022-07-18T07:55:02.112668+00:00 app[worker.1]: helpers._check_command_response(
2022-07-18T07:55:02.112669+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/helpers.py", line 180, in _check_command_response
2022-07-18T07:55:02.112669+00:00 app[worker.1]: raise OperationFailure(errmsg, code, response, max_wire_version)
2022-07-18T07:55:02.112670+00:00 app[worker.1]: pymongo.errors.OperationFailure: bad auth : Authentication failed., full error: {'ok': 0, 'errmsg': 'bad auth : Authentication failed.', 'code': 8000, 'codeName': 'AtlasError'}
- 主要语言
- Python
- 星标
- 225
- 派生
- 672
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AbirHasan2005/PyroFilesStoreBot 的其他 Issue
-
Ketab 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
-
bot.py 未关闭
难度 3/5 1-2 天 新手友好度 30/100
AbirHasan2005/PyroFilesStoreBot#69 · 1 条评论 ·
-
requirements.txt 未关闭
难度 1/5 1 小时以内 新手友好度 20/100
-
bot.py 未关闭
难度 3/5 1-2 天 新手友好度 45/100
-
bot.py 未关闭
难度 5/5 一周以上 新手友好度 10/100
查看 AbirHasan2005/PyroFilesStoreBot 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100