# ERA5 query works but download fails 400 Client Error: Bad Request

**URL:** <https://forum.ecmwf.int/t/era5-query-works-but-download-fails-400-client-error-bad-request/12978>\
**Category:** API\
**Tags:** cds, era5\
**Created:** [12 May 2025 10:23 UTC](https://forum.ecmwf.int/t/era5-query-works-but-download-fails-400-client-error-bad-request/12978 "2025-05-12T10:23:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christine\_Lion](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/c/7ea924/32.png) [@Christine\_Lion](https://forum.ecmwf.int/u/Christine_Lion)\
**Post date:** [12 May 2025 10:23 UTC](https://forum.ecmwf.int/t/era5-query-works-but-download-fails-400-client-error-bad-request/12978/1 "2025-05-12T10:23:34Z")

</div>

Hello,

I am trying to download ERA5 data using the Python API. Every time, my request is successful but I get a bad request error when trying to downloading the data.  
I tried the examples and the API request generated automatically and I get the same result.  
HTTPError: 400 Client Error: Bad Request for url: [https://object-store.os-api.cci2.ecmwf.int:443/cci2-prod-cache-3/2025-05-12/edbec49bb8bd15d474f12d2f5befacf.grib](https://object-store.os-api.cci2.ecmwf.int:443/cci2-prod-cache-3/2025-05-12/edbec49bb8bd15d474f12d2f5befacf.grib)  
I can download the data from the web interface or even using urllib.request  
I am not sure what I am doing wrong.  
I am using Python 3.9, and I have install cdsapi 0.7.5 with the conda-forge  
Thanks for your help

 ![image](https://forum.ecmwf.int/uploads/default/original/2X/8/8560bfe9199db1cfc415e3d945fddb972b023bb5.png)  
 ![image](https://forum.ecmwf.int/uploads/default/original/2X/5/5280dafb31a01bde01cf360b0cff4899b76bcaa0.png)  
 ![image](https://forum.ecmwf.int/uploads/default/original/2X/a/a9b2f4add929bce86789d22a4c3f6f340d950c87.png)
