materialsproject / api

New API client for the Materials Project
https://materialsproject.github.io/api/
Other
108 stars 40 forks source link

404 code for using the new MPRester #840

Open Jeff-oakley opened 1 year ago

Jeff-oakley commented 1 year ago

Description

When I run the following code under home internet

from mp_api.client import MPRester
USER_API_KEY='XXXX' 
mpr = MPRester(USER_API_KEY) 
mp_entries = mpr.get_entries_in_chemsys(['Li','Mn','O'])

The following message shows up:

MPRestError: REST query returned with error status code 404 on URL https://api.materialsproject.org/thermo/?_fields=entries&chemsys=Li-O&_limit=143 with message:
Response {"message":"no Route matched with those values"}

Environment

Relevant versions and platform info:

munrojm commented 1 year ago

@Jeff-oakley it should work if you update your client