无法连接mongodb

时间:2019-06-04 08:57:01

标签: reactjs mongodb

几天前,我尝试使用mongoDB运行服务器(使用-npm run dev),但没有任何问题。现在,我尝试运行它,但是总是出现网络错误。

{ MongoNetworkError: connection 5 to cluster0-shard-00-02-fq3bp.mongodb.net:27017 closed
    [1]     at TLSSocket.<anonymous> (C:\Users\itaya\Desktop\Itay\Dog_App\node_modules\mongodb-core\lib\connection\connection.js:352:9)
    [1]     at Object.onceWrapper (events.js:277:13)
    [1]     at TLSSocket.emit (events.js:189:13)
    [1]     at _handle.close (net.js:597:12)
    [1]     at TCP.done (_tls_wrap.js:388:7)
    [1]   name: 'MongoNetworkError',
    [1]   errorLabels: [ 'TransientTransactionError' ],
    [1]   [Symbol(mongoErrorContextSymbol)]: {} }

0 个答案:

没有答案