MongooseError [MongooseServerSelectionError]: connection to 52.6.250.237:27017 closed

后端 未结 5 1290
盖世英雄少女心
盖世英雄少女心 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:32

    This is probably because the IP of your machine changes, it should not happen in production, but to fix it you need to go to the network access pannel -> Add IP Address and click on "Add this IP address" and I´s going to work, until it changes again.

提交回复
热议问题