DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.23k stars 2.03k forks source link

UnhandledPromiseRejectionWarning: MongoNetworkError #2162

Closed ASullet closed 4 years ago

ASullet commented 4 years ago

System information

Describe the problem

Can't complete the simulation. Having following issue

(node:87645) UnhandledPromiseRejectionWarning: MongoNetworkError: connection 4 to 127.0.0.1:27017 timed out at (anonymous function).forEach.op (/Users/alex/Desktop/BotTrading/zenbot/node_modules/mongodb/lib/cmap/connection.js:78:15)
    at Map.forEach (<anonymous>)
    at Socket.Connection.stream.on (/Users/alex/Desktop/BotTrading/zenbot/node_modules/mongodb/lib/cmap/connection.js:77:20)
    at Socket.emit (events.js:198:13)
    at Socket._onTimeout (net.js:442: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)
(node:87645) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:87645) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Source code / Error logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

3DExtended commented 4 years ago

I can confirm this error: I just setup ZenBook as of today using the provided docker get started guide and am running into the same issue.

louis1204 commented 4 years ago

Duplicate of #1972 The referenced issue suggests to use node version 12, but I'm seeing the same while running node v12.16.3.