question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message is unclear : Retryable writes are not supported

See original GitHub issue

Repro steps:

  1. Create a MongoDB Database by right clicking on CosmosDB acount
  2. 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:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
sinediedcommented, Mar 20, 2020

@EricJizbaMSFT I got this issue when trying to insert data on a CosmosDB account created from the portal, here’s some things I saw:

  • There’s no error if you choose MongoDB 3.2 during Cosmos DB account creation, it only occurs with 3.6.
  • adding &retrywrites=false to the connection strings makes the error disappear, as said by @sinal01
  • Azure CLI use 3.2 by default for account creation, but the portal have 3.6 selected by default, is there any reason for that difference?
1reaction
sinal01commented, Mar 12, 2020

I 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found