Error message is unclear : Retryable writes are not supported
See original GitHub issueRepro steps:
- Create a MongoDB Database by right clicking on CosmosDB acount
- Shows
Retryable writes are not supported
Comment: I don’t understand why I have to do this. Will the extension not work properly if I don’t? Why can’t this be done for me? From a UX perspective, it looks weird that I get an error the first thing that happens after creating a Database, makes me think something is broken in general
Action: cosmosDB.createMongoDatabase Error type: 2 Error Message: Retryable writes are not supported. Please disable retryable writes by specifying “retrywrites=false” in the connection string or an equivalent driver specific config.
Version: 0.12.1 OS: darwin Product: Visual Studio Code Product Version: 1.42.1 Language: en
Call Stack
Connection.<anonymous> mongodb/pool.js:466:61
Connection.emit events.js:200:13
processMessage mongodb/connection.js:364:10
TLSSocket.<anonymous> mongodb/connection.js:533:15
TLSSocket.emit events.js:200:13
addChunk _stream_readable.js:294:12
readableAddChunk _stream_readable.js:275:11
TLSSocket.Readable.push _stream_readable.js:210:10
TLSWrap.onStreamRead stream_base_commons.js:166:17
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Mongoose findOneAndUpdate throw "Retryable writes are not ...
However, when I use POSTMAN to access the "/test" URL, I get an error "Retryable writes are not supported". I know documentdb doesn't...
Read more >Retryable writes are not supported when creating MongoDB ...
Create a new Cosmos DB instance with the Mongo API in Azure; Browse to it in VS Code, and attempt to create a...
Read more >Retryable Writes — MongoDB Manual
To disable retryable writes, applications that use drivers compatible with MongoDB 4.2 and higher must include retryWrites=false in the connection string.
Read more >MongoDB deployment does not support retryable writes - Reddit
I can't use Prisma studio with a mongodb deployment. Prisma return to me an error : Message: Invalid \ prisma.user.create()` invocation: Error ......
Read more >Cannot disable retryable writes/unable to edit data in AWS ...
1. Create an AWS DocDB cluster, v4.0.0 in MongoDB compatibility mode · 2. Connect to cluster in DataGrip using MongoDB driver · 3....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@EricJizbaMSFT I got this issue when trying to insert data on a CosmosDB account created from the portal, here’s some things I saw:
3.2
during Cosmos DB account creation, it only occurs with3.6
.&retrywrites=false
to the connection strings makes the error disappear, as said by @sinal01I tried in one of our lower environment adding to connections String - &retrywrites=false I did not see the issue anymore. We did upgrade to spring-boot 2.2.4 and started seeing this issue. But again looks like it is fixed by adding retryWrites=false. I will keep you posted if I find any thing related to this bug. Thank you for quick turnaround.