cloudinary / cloudinary/pycloudinary
resources_by_asset_folder Not working
- 主要言語
- Python
- スター
- 262
- フォーク
- 134
- 平均マージ
- 5時間 6分
- マージ済み PR(30日)
- 5
説明
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
コントリビューションガイド
調査の方向性
resources_by_asset_folder 関数から始め、traceback に記載されている execute_request.py を通じてリクエストを追跡します。報告されている Python 3.10 と Django SDK 1.38.0 の環境で呼び出しを再現し、その後、意図したエンドポイントに到達し、404 HTML ページではなく正常に解析できるレスポンスを返すことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- django, python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100