STRAPi 连接到 Mongo 数据库时出错。选项的键值对不完整

STRAPi Error connecting to the Mongo database. Incomplete key value pair for option

我在跟随 documentation 时尝试连接到我的 mongodb atlas 集群,但它给了我一个 Error connecting to the Mongo database. Incomplete key value pair for option

{
  "defaultConnection": "default",
  "connections": {
    "default": {
      "connector": "mongoose",
      "settings": {
        "uri": "mongodb://vafflehauz:Vafflehauz312**?@company-shard-00-00-qreis.mongodb.net:27017,company-shard-00-01-qreis.mongodb.net:27017,company-shard-00-02-qreis.mongodb.net:27017/test?ssl=true&replicaSet=company-shard-0&authSource=admin&retryWrites=true&w=majority"
      },
      "options": {
        "ssl": true
      }
    }
  }
}

这是我的 config/development/database.json。

我使用的是 strapi 3.0.0-beta 版本

感谢 Joe Drumgoole 指出我的密码是问题所在,现在可以使用了。

The question mark in your password is being interpreted as an option in the URI. try using %3F in its place. – Joe Drumgoole

"uri": "mongodb://vafflehauz:Vafflehauz312**%3F@company-shard-00-00-qreis.mongodb.net:27017,company-shard-00-01-qreis.mongodb.net:27017,company-shard-00-02-qreis.mongodb.net:27017/test?ssl=true&replicaSet=company-shard-0&authSource=admin&retryWrites=true&w=majority"