azure - 无法在 Azure CosmosDB (MongoDB) 中写入
问题描述
我在 azure 中创建了一个资源作为 CosmosDB 的 MongoDB api。但是当我添加任何集合时。我收到以下错误。
OperationFailure: Retryable writes are not supported. Please disable retryable writes by specifying "retrywrites=false" in the connection string or an equivalent driver specific config., full error: {'ok': 0.0, 'errmsg': 'Retryable writes are not supported. Please disable retryable writes by specifying "retrywrites=false" in the connection string or an equivalent driver specific config.', 'code': 2, 'codeName': 'BadValue'}
解决方案
正如消息所示,我们还不支持可重试的重写。如果您在门户中为您的帐户使用连接字符串,则它具有该选项并将更正此错误。
更新:Cosmos 现在支持服务器端重试,因此这不再是问题。
推荐阅读
- excel - 显示 SSIS 数据的问题 - 从 Excel 文件导入到 SQL DB
- google-chrome - 是否不会从 Chrome 80 设置 samesite=none 和 secure=true 的 cookie?
- wix - Visual Studio Code 的 WIX 项目生成器
- python - 状态元素引用异常 python
- spring - MongoTemplate 查找参数化类
- python - 使用逆和计算
- java - 未找到 ai.djl.pytorch.zoo.PtZooProvider
- python - 散景应用程序正在运行,但没有显示
- python - Tensorflow.unstack() 是否删除或重新排列数据?
- python - 上传Django后获取文件的实际名称