oracle / oracle/oci-python-sdk
Error 500 after trying fetch Tenancy Limits
Open
Nobody has claimed this yet.
Limits
- Dominant language
- Python
- Stars
- 474
- Forks
- 321
- Avg merge
- 23m
- Merged PRs (30d)
- 4
Description
A couple days ago I'm not able to get my tenancy limits, and I'm getting this issue:
Traceback (most recent call last):
File "/home/maurreye/Documents/Saas_Fusion/Saas_Scripts/sds/scripts/FusionScripts/sds-limit-report.py", line 106, in <module>
resource=limits_client.get_resource_availability(service,limit.name,compartment.id,availability_domain=availdomain.name).data
File "/home/maurreye/.local/lib/python3.10/site-packages/oci/limits/limits_client.py", line 223, in get_resource_availability
return retry_strategy.make_retrying_call(
File "/home/maurreye/.local/lib/python3.10/site-packages/oci/retry/retry.py", line 308, in make_retrying_call
response = func_ref(*func_args, **func_kwargs)
File "/home/maurreye/.local/lib/python3.10/site-packages/oci/base_client.py", line 535, in call_api
response = self.request(request, allow_control_chars, operation_name, api_reference_link)
File "/usr/local/lib/python3.10/dist-packages/circuitbreaker.py", line 159, in wrapper
return call(function, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/circuitbreaker.py", line 170, in call
return func(*args, **kwargs)
File "/home/maurreye/.local/lib/python3.10/site-packages/oci/base_client.py", line 724, in request
self.raise_transient_service_error(request, response, service_code, message, operation_name, api_reference_link, target_service, request_endpoint, client_version, timestamp, deserialized_data)
File "/home/maurreye/.local/lib/python3.10/site-packages/oci/base_client.py", line 906, in raise_transient_service_error
raise exceptions.TransientServiceError(
oci.exceptions.TransientServiceError: {'target_service': 'limits', 'status': 500, 'code': 'InternalServerError', 'opc-request-id': 'B903F636662F41DFBF9512709191B174/5391E175E003A1C7059C9231F3091D46/A2DCB68F3F3ED49BDAD11F487C65D73B', 'message': 'Internal Service Error, please try again', 'operation_name': 'get_resource_availability', 'timestamp': '2024-10-30T17:41:18.456796+00:00', 'client_version': 'Oracle-PythonSDK/2.137.1', 'request_endpoint': 'GET https://limits.ap-hyderabad-1.oci.oraclecloud.com/20190729/services/database/limits/vm-standard-a2-ocpu-count/resourceAvailability', 'logging_tips': 'To get more info on the failing request, refer to https://docs.oracle.com/en-us/iaas/tools/python/latest/logging.html for ways to log the request/response details.', 'troubleshooting_tips': "See https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_500__500_internalservererror for more information about resolving this error. Also see https://docs.oracle.com/iaas/api/#/en/limits/20181025/ResourceAvailability/GetResourceAvailability for details on this operation's requirements. If you are unable to resolve this limits issue, please contact Oracle support and provide them this full error message."}
Env info:
Python 3.10.12
oci 2.121.0
oci-cli 3.37.8
Could someone review and suggest?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the get_resource_availability call in oci/limits/limits_client.py around line 223 and follow the request through oci/base_client.py around line 724. Reproduce the request against the reported limits endpoint, compare the SDK and CLI versions, and determine whether the failure is caused by SDK request handling or the upstream service; done means a confirmed cause or a clearly documented upstream issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100