cloudinary / cloudinary/pycloudinary
resources_by_asset_folder Not working
- Ngôn ngữ chính
- Python
- Star
- 262
- Fork
- 134
- Merge trung bình
- 5 giờ 6 phút
- Pull request đã merge (30 ngày)
- 5
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với hàm resources_by_asset_folder và lần theo request qua execute_request.py, tệp được nêu trong traceback. Tái hiện lời gọi trong môi trường Python 3.10 và Django SDK 1.38.0 được báo cáo, sau đó xác minh rằng nó đến đúng endpoint dự định và trả về response có thể được phân tích thành công thay vì một trang HTML 404.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- django, python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100