New MPRester timing out (504) even with small queries

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.

Hi @kdmiller,

thanks for reaching out and bringing this up. We’ve indeed been having issues with our database deployment since Saturday. We’ve identified the source(s) of the issue and are trying to get a fix out in the next couple of days. I’ll post a response here once I have an update.

sorry about the inconvenience,
thanks,
Patrick

1 Like

Hi @kdmiller, we should be back to normal now. Please let me know if you still experience unexpected issues with the API or the website. Thanks, Patrick

Looks to be working. Thanks!