因此,您可能在其他地方见过此问题类型。但这里的事情是,我尝试了所有我们需要做的事情,根据文档,并看到其他帖子类似的错误,但我的错误仍然没有得到修复。因此,在这段代码中,我使用了keyv并使用MongoDBatlas作为存储适配器,但错误来自于keyv。此外,在"keyv“中没有错误,因为它适用于其他人,在MongoDB中有错误1. Made sure there is IP access
2.The
mongodb+srv://:@epawn-gfiev.mongodb.net/test?retryWrites=true&w=majority MongoDartError (MongoDart错误: uri: MongoDart mongodb+srv中的无效方案)
Db db = new Db("mongodb://localhost:27017