Azure / Azure/azure-sdk-for-python
Python Azure SDK/azure.mgmt.resourcegraph|azure.mgmt.resource | JSON is invalid: Unterminated string error
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
- **Package Name**: azure-mgmt-resourcegraph / azure-mgmt-resource
- **Package Version**: 8.0.0 / 23.2.0
- **Operating System**:
- **Python Version**: 3.11
**Describe the bug**
The customer uses the Azure Python API to gather information about resources in Azure. They gather information from all their subscriptions, so the error happened with resources from multiple subscriptions. Most of the time, the collections succeed with no errors, but intermittently an error like the below will occur. It seems to happen randomly, and when the same request is retried, it will succeed without error.
They have an automatic retry method in place, but multiple times now the number of errors has exceeded their tool's allowed retries causing the data collection to fail. When this occurs, it is because this issue is occurring in enough separate requests that it exceeds our retry threshold. When the requests are retried, they succeed the second time. Instead of continuing to increase our allowed retries we would like to figure out the underlying issue to see if it is solvable.
**To Reproduce**
Steps to reproduce the behavior:
The errors have occurred when querying Resource Graph using the following method:
ResourceGraphClient.resources(QueryRequest),
and when listing resources with Resource Management using the following method:
ResourceManagementClient.resources.list().
**Expected behavior**
API succeeds without execption.
**Screenshots**

**Additional context**
This issue is from https://portal.microsofticm.com/imp/v5/incidents/details/587009702/summary and logs are in attachment of the ICM issue.
Contributor guide
Assessment
This issue has not been assessed yet.