CosmosDB UUID issue
See original GitHub issueHi,
I’m currently facing issue with UUID 04 representation in CosmosDB mongo API driver:
"Message": "GuidRepresentation Standard is only valid with subType UuidStandard, not with subType UuidLegacy.\r\nИмя параметра: guidRepresentation"
They said they added it to all regions: https://feedback.azure.com/forums/263030-azure-cosmos-db/suggestions/20206180-support-uuid-subtype-4
I just wonder how to make it work both MongoDB and CosmosDB with Standard UUID type?
Seems to me that only CSharpLegacy type will work for both. Any suggestions?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
cosmos cannot delete the duplicate uuid - azure
You cannot delete any content via the query language; you need to use the API (or language-specific Cosmos DB SDK) for any operation...
Read more >Troubleshoot Azure Cosmos DB bad request exceptions
Learn how to diagnose and fix bad request exceptions such as input content or partition key is invalid, partition key doesn't match in...
Read more >Troubleshoot Azure Cosmos DB request rate too large ...
A "Request rate too large" exception, also known as error code 429, indicates that your requests against Azure Cosmos DB are being rate ......
Read more >Preventing Headaches with Cosmos Document IDs
The following simple tip regarding Cosmos DB's document identifier property may help you avoid creating a hard-to-find bug in your code.
Read more >Vulnerability in Azure Cosmos DB allows for remote code ...
The vulnerability is a design flaw. Each Jupyter Notebook environment in Azure Cosmos DB has a universally unique identifier (UUID). Orca ...
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 FreeTop 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
Top GitHub Comments
yeah it does. I’ve also removed the static constructor in the last version of the repo 😉
Thanks for the feedback, I’ll look into removing the static constructor. I have not tested this, but are you sure you cannot overwrite the GuidRepresentation in the constructor of your repository though?
According to https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoDefaults.cs, it should not cause issues: