在日志中,我可以看到下面的例外情况:
Caused by: com.mongodb.MongoCommandException: Command failed with error 17 (ProtocolError): 'Attempt to switch database target during SASL authentication.' on server mongo:27017.
我正在使用NestJS、TypeORM和Cosmos DB Mongo。MongoError: Retryable writes are not supported.一个正在保存到DB中的逻辑的简化版本。我保存的对象在Azure中执行db.collection.save()操作时运行良好。我还尝试了retryWrites=false,并在连接字符串的末尾