Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CosmosException : Fixes exception messages to remove JSON formatting #2303

Merged
merged 6 commits into from
Mar 17, 2021

Conversation

sourabh1007
Copy link
Contributor

@sourabh1007 sourabh1007 commented Mar 14, 2021

Iterate over Error JSON and create message in string format with keys and their corresponding values.

Type of change

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #2255

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"

Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@sourabh1007 sourabh1007 changed the title CosmosException : Create message from json and unescape it CosmosException : Fixes exception messages by removing escape character Mar 14, 2021
@github-actions github-actions bot dismissed their stale review March 14, 2021 19:19

All good!

@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/errorjson branch 2 times, most recently from f1feaab to 5bebb38 Compare March 15, 2021 08:31
@sourabh1007 sourabh1007 changed the title CosmosException : Fixes exception messages by removing escape character CosmosException : Fixes exception messages by iterating over JSON Mar 17, 2021
@sourabh1007 sourabh1007 self-assigned this Mar 17, 2021
@j82w j82w changed the title CosmosException : Fixes exception messages by iterating over JSON CosmosException : Fixes Mar 17, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"

Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@j82w j82w changed the title CosmosException : Fixes CosmosException : Fixes exception messages to remove JSON Mar 17, 2021
@github-actions github-actions bot dismissed their stale review March 17, 2021 18:21

All good!

@j82w j82w changed the title CosmosException : Fixes exception messages to remove JSON CosmosException : Fixes exception messages to remove JSON formatting Mar 17, 2021
@j82w j82w merged commit 2f7e613 into master Mar 17, 2021
@j82w j82w deleted the users/sourabhjain/errorjson branch March 17, 2021 19:17
ealsur pushed a commit that referenced this pull request Mar 18, 2021
…2303)

* CosmosException : Fixes exception messages by removing escape character

* Update benchmark results

* Update Microsoft.Azure.Cosmos/src/Resource/CosmosExceptions/CosmosExceptionFactory.cs

Co-authored-by: j82w <j82w@users.noreply.github.com>

* Code review Changes - 1

* Code Review Changes - 2

Co-authored-by: Sourabh Jain <sourabhjain@microsoft.com>
Co-authored-by: j82w <j82w@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error Message containing JSON
3 participants