cloudinary / cloudinary/pycloudinary
resources_by_asset_folder Not working
- Langage dominant
- Python
- Étoiles
- 262
- Forks
- 134
- Merge moyen
- 5 h 6 min
- PR mergées (30 j)
- 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la fonction resources_by_asset_folder et suivez la requête à travers execute_request.py, qui est mentionné dans le traceback. Reproduisez l’appel dans l’environnement indiqué avec Python 3.10 et Django SDK 1.38.0, puis vérifiez qu’il atteint le point de terminaison prévu et renvoie une réponse pouvant être analysée correctement au lieu d’une page HTML 404.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- django, python
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100