Description
When querying data with the new API, the request times out 80% of the time. Even with relatively small queries. Additionally, this seems to be a new issue. I ran similar queries a week ago with no issues.
Code
element_set = {'Zr','O'}
with MPRester(MAPI_KEY) as mpr:
mp_results = mpr.summary.search(elements=element_set, num_elements=len(element_set), energy_above_hull=(0, 0.01),
fields=['material_id', 'formula_pretty', 'structure','energy_above_hull'],
chunk_size=100)
Error Message
REST query returned with error status code 504 on URL https://api.materialsproject.org/materials/summary/?energy_above_hull_min=0&energy_above_hull_max=0.01&nelements_min=2&nelements_max=2&elements=O%2CZr&_limit=100&_fields=material_id%2Cformula_pretty%2Cstructure%2Cenergy_above_hull with message:
Server timed out trying to obtain data. Try again with a smaller request.