Invalid cursor values for Europeana #3745
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: catalog
Related to the catalog and Airflow DAGs
Description
Identified in a production Europeana run. It seems like some Europeana cursor values are not being encoded properly, resulting in a 400.
Reproduction
Run the Europeana DAG with the following for
initial_query_params
(but replace the value forwskey
with the correct api key):The DAG will fail immediately.
The cursor is
AoIvLzEwMjgvRTAwMjc3MjQyc/yK+Z+NAw=\u001d
. It is url encoded, resulting in the URL that is requested by the DAG: https://api.europeana.eu/record/v2/search.json?wskey=***&profile=rich&reusability=open&reusability=restricted&sort=europeana_id%2Bdesc&sort=timestamp_created%2Bdesc&rows=100&media=true&start=1&qf=TYPE%3AIMAGE&qf=provider_aggregation_edm_isShownBy%3A%2A&query=timestamp_update%3A%5B2024-01-25T00%3A00%3A00Z+TO+2024-01-26T00%3A00%3A00Z%5D&cursor=AoIvLzEwMjgvRTAwMjc3MjQyc%2FyK%2BZ%2BNAw%3D%1DThe full API response is:
The text was updated successfully, but these errors were encountered: