Mongodb: failed to connect to server on first connect

前端 未结 13 2971
陌清茗
陌清茗 2020-12-15 15:52

I get the following error:

Warning { MongoError: failed to connect to server [mongodb:27017] on first connect
    at Pool. (/Users/michaelks         


        
相关标签:
13条回答
  • 2020-12-15 16:26

    If the mongo instance is build on the cloud.mongodb.com this error appears when the instance can work only from known IP addresses set in the IP whitelist pool when the instance was configured.

    So from the mongo dashboard need to be set the current IP address on the IP whitelist from network access menu on the left.

    BR,

    0 讨论(0)
提交回复
热议问题