-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
Confirm this is a Python library issue and not an underlying Cloudflare API issue.
- This is an issue with the Python library
Describe the bug
When running the script_upload.py
script, I get:
cloudflare.APIStatusError: Error code: 415 - {'result': None, 'success': False, 'errors': [{'code': 10001, 'message': 'Content-Type must be one of: application/javascript, text/javascript, multipart/form-data'}], 'messages': []}
This indicates to problems:
- The
except
block should expect an exception of typeAPIStatusError
, notBadRequestError
- The
tuple
to upload the files is buggy
To Reproduce
Run
CLOUDFLARE_API_TOKEN="..." CLOUDFLARE_ACCOUNT_ID="..." uv run script_upload.py
Code snippets
OS
macOS
Python version
3.13
Library version
4.2.0
Metadata
Metadata
Assignees
Labels
No labels