Problem
Eurostat's SDMX API sometimes returns an empty data message with a download URL in the response footer instead of the actual data. This happens for large datasets that are served asynchronously as ZIP archives.
Currently opensdmx does not handle this case: the user receives an empty response with no explanation.
Expected behaviour
When Eurostat returns a footer URL, opensdmx should:
- Detect the footer URL in the response
- Poll the URL until the file is ready (with configurable retry delay and max attempts)
- Download and extract the ZIP
- Return the data as if it had been a normal synchronous response
Reference
khaeru/sdmx handles this in sdmx/source/estat.py via a finish_message() hook that polls the footer URL with configurable retry delay and max attempts.
Notes
- Affects large Eurostat datasets only — standard requests are unaffected
- The polling logic should be transparent to the caller
- Retry parameters (delay, max attempts) could be exposed as provider-level config in
portals.json
Problem
Eurostat's SDMX API sometimes returns an empty data message with a download URL in the response footer instead of the actual data. This happens for large datasets that are served asynchronously as ZIP archives.
Currently opensdmx does not handle this case: the user receives an empty response with no explanation.
Expected behaviour
When Eurostat returns a footer URL, opensdmx should:
Reference
khaeru/sdmxhandles this insdmx/source/estat.pyvia afinish_message()hook that polls the footer URL with configurable retry delay and max attempts.Notes
portals.json