[英]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.