简体   繁体   English

mLAb:名称解析暂时失败

[英]mLAb : Temporary Failure in name resolution

I'm not sure how this is happening in mLab or if it's something mLab should encounter. 我不确定在mLab中会如何发生,或者这是否是mLab应该遇到的。 I left my python code processing all night inserting and updating document in mLab. 我整夜都在pythonab中插入python代码来处理文档的插入和更新。 Until I woke up this morning and found the error: 直到今天早上我醒来发现错误为止:

ServerSelectionTimeoutError: ds[....].mlab.com:[...] :[Errno:-3] 
Temporary Failure in Name Resolution

What does this mean and how to fix this? 这是什么意思,以及如何解决?

Can you add the code snippet how you are updating the documents. 您能否添加代码片段来更新文档。 This usually happens when Python code cannot resolve the domain name or DNS lookup issues. 当Python代码无法解决域名或DNS查找问题时,通常会发生这种情况。

  • Two things I suggest would be to check how many of your records got inserted/updated in mongo lab. 我建议做两件事,就是检查在mongo实验室中插入/更新了多少记录。

  • Code snippet which does this post request(Since mongo lab API actually does a POST of document that you actually insert/update. Check if it has a an option allow_redirects=False and set it.) 发出此请求的代码段(由于mongo lab API实际上对您实际插入/更新的文档进行了POST。请检查它是否具有选项allow_redirects=False并进行设置。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Travic CI 失败:名称解析暂时失败 - Travic CI is failing with: Temporary failure in name resolution 名称解析暂时失败 [Errno -3] Docker - Temporary failure in name resolution [Errno -3] with Docker 名称解析暂时失败-wget in linux - Temporary failure in name resolution -wget in linux <urlopen error [Errno -3] Temporary failure in name resolution> - <urlopen error [Errno -3] Temporary failure in name resolution> 无法将主机名“db”转换为地址:名称解析暂时失败 - could not translate host name "db" to address: Temporary failure in name resolution Ubuntu 20.04 “名称解析暂时失败” - 最近重新安装 - Ubuntu 20.04 “Temporary failure in name resolution” - recently reinstalled Lambda 函数无法连接到 Redshift:名称解析暂时失败 - Lambda function unable to connect to Redshift : Temporary failure in name resolution 我收到一个错误:套接字错误[Errno -3]名称解析暂时失败 - I got an error : socket error [Errno -3] Temporary failure in name resolution Python ftplib: socket.gaierror: [Errno -3] 名称解析暂时失败 - Python ftplib: socket.gaierror: [Errno -3] Temporary failure in name resolution 在运行几个小时后,永久性的gaierror“名称解析暂时失败” - Permanent gaierror 'Temporary failure in name resolution' after running for a few hours
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM