0
votes

I have created a resource in azure as CosmosDB's MongoDB api. But when I am adding any collection. I am getting following error.

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'}
1
Please edit your question to show the code you're using, that led to your error (and also please specify which language you're using, which will help folks understand which SDK you're using). Difficult to diagnose with just an error message without any other details.David Makogon

1 Answers

-1
votes

As the message indicates we don't yet support retryable rewrites. If you use the connection string for your account in the portal it has that option and will correct this error.

Update: Cosmos now supports server-side retries so this is no longer an issue.