404 Client Error: Not Found

I am testing the new API and have so far been unsuccessful. I followed the instructions here (Climate Data Store) and am testing the example code at the bottom of the page.

I tested with ~/.cdsapirc using:
url: https://cds.climate.copernicus.eu/api
key: my personal access token

I also tested with setting this in my python script:
os.environ[‘CDSAPI_URL’] = ‘https://cds.climate.copernicus.eu/api
os.environ[‘CDSAPI_KEY’] = ‘my personal access token’

I have accepted the license to use copernicus products.

I get the following error:

“404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/resources/reanalysis-era5-pressure-levels”.

As best I can tell from reading the forum, others with this issue have managed to resolve it, but so far none of those solutions work for me.

Thanks!

Problem solved by downgrading to Python 3.9 from 3.13.