Questions tagged «mongodb-atlas»

17
MongoDB连接错误:MongoTimeoutError:服务器选择在30000毫秒后超时
我正在尝试创建一个完整的应用程序,阅读以下教程: https://medium.com/javascript-in-plain-english/full-stack-mongodb-react-node-js-express-js-in-one-simple-app-6cc8ed6de274 我遵循了所有步骤,然后尝试运行: node server.js 但我收到以下错误: MongoDB连接错误:MongoTimeoutError:服务器选择在超时30000毫秒后超时._onTimeout(C:\ RND \ fullstack_app \ backend \ node_modules \ mongodb \ lib \ core \ sdam \ server_selection.js:308:9)在listOnTimeout(内部/ processTimers(internal / timers.js:475:7)上的timers.js:531:17){名称:“ MongoTimeoutError”,原因:错误:在TCPConnectWrap.afterConnect上连接ETIMEDOUT 99.80.11.208:27017 [完成时](网络。 js:1128:14){名称:'MongoNetworkError',[Symbol(mongoErrorContextSymbol)]:{}},[Symbol(mongoErrorContextSymbol)]:{}}(节点:42892)UnhandledPromiseRejectionWarning:MongoTimeoutError:服务器选择在30000 ms之后超时在超时时._onTimeout(C:\ RND \ fullstack_app \ backend \ node_modules \ mongodb \ lib \ core \ sdam \ server_selection.js:308:9)在processTimers(internal / …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.