Error connecting to Azure: Illegal character in password with mongoose 5.0.1 but works in 4.13.9

后端 未结 4 950
鱼传尺愫
鱼传尺愫 2021-02-14 07:11

I have a node.js application that is deployed to azure using CosmosDB and the MongoDB API. My application uses mongoose which works seamlessly in 4.13.9.

My application

4条回答
  •  余生分开走
    2021-02-14 07:38

    Add the new url parser as an option { useNewUrlParser: true }

    Change you line 3 to:

    mongoose.connect(configDB.url, { useMongoClient: true, useNewUrlParser: true } );
    

提交回复
热议问题