api icon indicating copy to clipboard operation
api copied to clipboard

404 code for using the new MPRester

Open Jeff-oakley opened this issue 2 years ago • 1 comments

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:

  • Python: 3.9.13
  • OS: Mac OS 12.6
  • Version: mp_api 0.29.7

Jeff-oakley avatar Aug 29 '23 00:08 Jeff-oakley

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

munrojm avatar Aug 29 '23 00:08 munrojm