resources_by_asset_folder Not working
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 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 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<html lang='en' xml:lang='en' xmlns='[https://www.w3.org/1999/xhtml](https://www.w3.org/1999/xhtml/)'>
\n<meta charset='utf-8'>\n<meta content='width=device-width, initial-scale=1.0' name='viewport'>\nI am working on Colab
Environment and Frameworks (fill in the version numbers)
- Summary: Python and Django SDK for Cloudinary - 1.38.0
- Python Version - 3.10
can I work on this issue?
@NotCoderBoy this is happening because this API is only supported on dynamic folders as per https://cloudinary.com/documentation/admin_api#get_resources_by_asset_folder.
You can confirm your folder mode via https://console.cloudinary.com/pm/developer-dashboard.
The error could be better so @someshfengde maybe you can work on that?
yes sure will add more precise error handling to it