-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Zenodo requests causes error in request json parsing
floatcsep/floatcsep/utils/accessors.py
Line 23 in 5b3e00f
| r = requests.get(f"https://zenodo.org/api/records/{record_id}", timeout=30) |
download_urls = [f["links"]["self"] for f in r.json()["files"]]
^^^^^^^^
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 2 column 11 (char 11)
This is caused by a HTML reply rather than a JSON, due to Zenodo limiting
rate requests (https://blog.zenodo.org/2025/11/25/2025-11-14-search-api-updates/). This causes tests and tutorials to usually fail. This might be due to multiple model flavours calls in the same zenodo repository in quick succession, which label the IP to be causing suspicious traffic.
Metadata
Metadata
Assignees
Labels
No labels