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
-
难度 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 小时 新手友好度 70/100
OpenFreeEnergy/Lomap#180 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
roman-corgi/corgisim#327 ·
维护者通常 2 天内回复
-
agent:WSL bug code-review linux pri:medium sev:low tooling
难度 2/5 半天 新手友好度 62/100
维护者通常 1 天内回复