dr-leo / pandaSDMX

Python interface to SDMX
Apache License 2.0
129 stars 60 forks source link

Read timed out with ECB #247

Closed younggotti closed 1 year ago

younggotti commented 1 year ago

Hi I've been using this code for months:

ecb = sdmx.Request('ECB', backend='memory')
key = dict(FREQ="D", CURRENCY=["AUD","CAD","CHF","CNY","EUR","GBP","JPY","KRW","MXN","USD"], CURRENCY_DENOM="EUR", EXR_TYPE="SP00", EXR_SUFFIX="A")
df = ecb.data('EXR', key=key).to_pandas().reset_index()

Today it gives the following error: ReadTimeout: HTTPSConnectionPool(host='data-api.ecb.europa.eu', port=443): Read timed out. (read timeout=30.1)

I tried to update to 1.10 but nothing changed. Thanks


Edit: looks like it's a problem on ECB servers. Increasing timeout solved the issue.