resources_by_asset_folder Not working
@someshfengde 已經在處理了。
開始於 2024年10月1日。
評估
研究方向
從 resources_by_asset_folder 函式開始,透過 traceback 中提到的 execute_request.py 追蹤請求。在回報的 Python 3.10 和 Django SDK 1.38.0 環境中重現該呼叫,然後確認它會到達預期的端點,並傳回可以成功解析的回應,而不是 404 HTML 頁面。
由索引模型根據 Issue 內容生成。
描述
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'>\n<title>Cloudinary - Page not found</title>\n<link href='//fonts.googleapis.com/css?family=Roboto:500,400italic,300,700,500italic,400&display=swap' rel='stylesheet'>\n<link href='//fonts.googleapis.com/css?family=Montserrat:300,500,700&display=swap' rel='stylesheet'>\n<link href='//fonts.googleapis.com/css?family=Roboto+Mono:300,400&display=swap' rel='stylesheet'>\n<link href='[https://plus.google.com/+Cloudinary](https://plus.google.com/+Cloudinary/)' rel='publisher'>\n<link href='[https://res.cloudinary.com/prod/image/upload/w_57/console/favicon.png](https://res.cloudinary.com/prod/image/upload/w_57/console/favicon.png/)' rel='apple-touch-icon' sizes='57x57'>\n<link href='[https://res.cloudinary.com/prod/image/upload/w_114/console/favicon.png](https://res.cloudinary.com/prod/image/upload/w_114/console/favicon.png/)' rel='apple-touch-icon' sizes='114x114'>\n<link href='[https://res.cloudinary.com/prod/image/upload/w_72/console/favicon.png](https://res.cloudinary.com/prod/image/upload/w_72/console/favicon.png/)' rel='apple-touch-icon' sizes='72x72'>\n<link href='[https://res.cloudinary.com/prod/image/upload/w_144/console/favicon.png](https://res.cloudinary.com/prod/image/upload/w_144/console/favicon.png/)' rel='apple-touch-icon' sizes='144x144'>\n<link href='[https://res.cloudinary.com/prod/image/upload/w_60/console/favicon.png](https://res.cloudinary.com/prod/image/upload/w_60/console/favicon.png/)' rel='apple-touch-icon' sizes='60x60'>\n<link href='[https://res.cloudinary.com/prod/image/upload/w_120/console/favicon.png](https://res.cloudinary.com/prod/image/upload/w_120/console/favicon.png/)' rel='apple-touch-icon' sizes='120x...
I 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
- 主要語言
- Python
- 星號
- 262
- 分支
- 133
- 平均合併
- 3 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cloudinary/pycloudinary 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 30/100
cloudinary/pycloudinary#385 · 2 則留言 ·
-
cloudinary.api.resources_by_asset_folder Error可能重新可做 @atdcloud 於 1266 天前認領,目前沒有進行中的 PR。 未關閉question
cloudinary/pycloudinary#349 · 1 個 reaction · 已指派 1 人 ·
-
Feature: Bad Format exception可能重新可做 @const-cloudinary 於 2139 天前認領,目前沒有進行中的 PR。 未關閉
cloudinary/pycloudinary#266 · 2 則留言 · 已指派 1 人 ·
-
CloudinaryFileField doesn't show checkbox for clear the field可能重新可做 @YomesInc 於 2229 天前認領,目前沒有進行中的 PR。 未關閉
cloudinary/pycloudinary#258 · 2 則留言 · 已指派 1 人 ·
-
How to use CloudinaryField to accept images/url from other sources?可能重新可做 @lukitsbrian 於 2453 天前認領,目前沒有進行中的 PR。 未關閉question
cloudinary/pycloudinary#233 · 2 則留言 · 已指派 1 人 ·
查看 cloudinary/pycloudinary 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
btclib-org/btclib-node#2505 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
open-webui/open-webui#34462 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
gorakhargosh/watchdog#1462 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
openwisp/openwisp-monitoring#889 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
IETF-Hackathon/pqc-certificates#351 ·
維護者通常 2 天內回覆