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

[Core] Improve Error Message For Json Decode Errors #40235

Open
kashifkhan opened this issue Mar 26, 2025 · 2 comments
Open

[Core] Improve Error Message For Json Decode Errors #40235

kashifkhan opened this issue Mar 26, 2025 · 2 comments
Assignees
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team

Comments

@kashifkhan
Copy link
Member

We want to improve the error message that is raised from Azure Core when it encounters json decoding errors. As these errors are typically coming from the service we should

  • Let the user know that the error is coming from the service versus our default error message
  • The error message can also include common things the user should check or do and also include a link to where the customer can open a ticket with the service.

This will aide users of the SDK on what next steps are and what could be causing this.

Copy link

@kashifkhan @xiangyan99

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Mar 26, 2025
Copy link

Hello @kashifkhan. I'm an AI assistant for the azure-sdk-for-python repository. I have some suggestions that you can try out while the team gets back to you.

• Consider updating the error message so it clearly indicates that the JSON decoding failure is due to a response payload from the service, rather than a default SDK error.

• Include a short checklist in the error message advising customers to:

  • Verify the validity of the JSON payload returned by the service.
  • Check network connectivity and confirm that the service is up and running.
  • Inspect the response headers and status code for additional clues.

• Embed a link in the error message (or documentation) pointing to the appropriate service issue tracker (for example, the Azure REST API Specs Issues) so that users can quickly escalate if the problem persists.

These improvements should help users isolate if the error is coming from the service or due to local issues, and guide them towards potential resolutions.

The team will get back to you shortly, hopefully this helps in the meantime.

@kashifkhan kashifkhan added the feature-request This issue requires a new behavior in the product in order be resolved. label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team
Projects
None yet
Development

No branches or pull requests

2 participants