【发布时间】:2019-04-15 14:30:22
【问题描述】:
当我在本地机器上部署应用程序时,我的服务器出现连接超时错误,一切都按预期工作,但只有少数更大的数据库查询出现此错误:
{ result:
{ result:
{ MongoNetworkError: connection 4 to localhost:27017 timed out
at Socket.<anonymous> (/caching/node_modules/mongodb-core/lib/connection/connection.js:259:7)
at Object.onceWrapper (events.js:277:13)
at Socket.emit (events.js:189:13)
at Socket._onTimeout (net.js:443:8)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
name: 'MongoNetworkError',
errorLabels: [Array],
[Symbol(mongoErrorContextSymbol)]: {} } } }
【问题讨论】: