You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I looked into the issue and it seems like the problem is due to the use of outdated imports from the collections module. Starting from Python 3.10+, classes like Mapping, MutableMapping, etc., have been moved to collections.abc, and in Python 3.12, the old import path has been fully removed.
To fix the issue, we can update the imports in the codebase from:
from collections import Mapping
to:
from collections.abc import Mapping
I’d be happy to help submit a PR for this if needed. Let me know!
Uh oh!
There was an error while loading. Please reload this page.
Confirm this is a Python library issue and not an underlying Cloudflare API issue.
Describe the bug
The Cloudflare Image Create function is broken.
There is an example below, this has also been discussed on StackOverflow
https://stackoverflow.com/questions/79032782/error-5455-when-uploading-to-cloudflare-images-using-python-library
I cant see any test coverage for this use case.
cloudflare-python/tests/api_resources/images/test_v1.py
Line 28 in fc6ca90
To Reproduce
This is a working example using Python Requests
This is a broken example using the Cloudflare Sync function
The output is
This is a broken example using the Async Cloudflare function
The output is
Code snippets
OS
macOS
Python version
3.12.9
Library version
v4.1.0
The text was updated successfully, but these errors were encountered: