WordPressDataIngester::_get_filesize
should not use get_response_json
#1373
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟧 priority: high
Stalls work on the project or its dependents
🐍 tech: python
Involves Python
Description
The WordPress Photo Directory data ingester's
_get_filesize
method is presently attempting to useProviderDataIngester::get_response_json
on an endpoint which is not JSON:https://github.com/WordPress/openverse-catalog/blob/33c29f28672e0ae75cfd410b38b5d0a6d6dfaf5a/openverse_catalog/dags/providers/provider_api_scripts/wordpress.py#L132
This is giving us the following error:
Reproduction
{"initial_query_params": {"format": "json", "page": 28, "per_page": 100, "_embed": "true"}}
Additional context
Related to but separate from #1377
Resolution
The text was updated successfully, but these errors were encountered: