cloudinary / cloudinary/pycloudinary
resources_by_asset_folder Not working
- Dominant language
- Python
- Stars
- 262
- Forks
- 134
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 5
Description
Error parsing server response (404) when function is called
Behaviour - Functions are not working as expected
Error screenshots or Stack Trace
---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/cloudinary/api_client/execute_request.py](https://localhost:8080/#) in execute_request(http_connector, method, params, headers, auth, api_url, **options)
74 try:
---> 75 result = json.loads(body.decode('utf-8'))
76 except Exception as e:
7 frames
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
GeneralError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/cloudinary/api_client/execute_request.py](https://localhost:8080/#) in execute_request(http_connector, method, params, headers, auth, api_url, **options)
76 except Exception as e:
77 # Error is parsing json
---> 78 raise GeneralError("Error parsing server response (%d) - %s. Got - %s" % (response.status, body, e))
79
80 if "error" in result:
GeneralError: Error parsing server response (404) - b'\n\n\n\nCloudinary - Page not found\n\n\n\n\n\n\n\n\n\n
Contributor guide
Research direction
Start with the resources_by_asset_folder function and trace the request through execute_request.py, which is named in the traceback. Reproduce the call in the reported Python 3.10 and Django SDK 1.38.0 environment, then verify that it reaches the intended endpoint and returns a response that can be parsed successfully instead of a 404 HTML page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100