cloudinary / cloudinary/pycloudinary
resources_by_asset_folder Not working
- Vorherrschende Sprache
- Python
- Sterne
- 262
- Forks
- 134
- Ø Merge
- 5 Std. 6 Min.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Beginne mit der Funktion resources_by_asset_folder und verfolge die Anfrage durch execute_request.py, das im Traceback genannt wird. Reproduziere den Aufruf in der angegebenen Umgebung mit Python 3.10 und Django SDK 1.38.0 und überprüfe anschließend, dass er den vorgesehenen Endpunkt erreicht und eine Antwort zurückgibt, die erfolgreich geparst werden kann, statt einer 404-HTML-Seite.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- django, python
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100