MongooseError [MongooseServerSelectionError]: connection to 52.6.250.237:27017 closed

后端 未结 5 1279
盖世英雄少女心
盖世英雄少女心 2021-01-01 12:43

i am trying to save data in mongodb through post method and using mongodb atala with node.js but it keeps giving me an error, i provided correct connection string and correc

5条回答
  •  庸人自扰
    2021-01-01 13:24

    I had the same issue but I success to fix it. On your MongoDB account, check the IP you choose to connect your application.

    If you start working on a initial IP and try to work using another IP address it won't work.

    In mongoDB:

    NetworkAccess/ (verify the IP you registered is the same than this your actually used). You can select : Add IP address

提交回复
热议问题