MongoDB超时 [英] MongoDB ETIMEOUT

查看:75
本文介绍了MongoDB超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我不知道这是怎么回事,我有2个工作项目和一些备份项目.以前曾经工作过,并且现在现在在Heroku中在线工作. 今天,我尝试执行常规例程并启动了节点,现在,我在下面遇到此错误.我可能是因为我刚刚安装了团队视图,并且可能会影响它.但这似乎并非如此,因为我在另一台计算机上尝试过,但遇到了相同的错误.我不知道如何调试它,有人可以帮我吗!

Ok i dont know what is going on here i have 2 working project and some backup project. Which were working before and is working online right now in Heroku. Today i try to do the normal routine and started node, and now i am getting this error below. I though it might be that i just recently install team-view and that might affect it. But this doesn't seem to be the case because i tried it on a different computer and i get the same error. I have no clue to how to debug this, can someone help me please!!

推荐答案

将您的连接字符串更改为

Change you connection string to

variable = 'mongodb://username:xxx@clusternamecluster-shard-00-00-i548w.mongodb.net:27017,developerbookcluster-shard-00-01-i548w.mongodb.net:27017,developerbookcluster-shard-00-02-i548w.mongodb.net:27017/test?ssl=true&replicaSet=DeveloperBookCluster-shard-0&authSource=admin&retryWrites=true&w=majority';

这篇关于MongoDB超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆