Error 504 for request of bandstructure

Hello,

I encountered some problems when downloading bandstructure of mp-6702, mp-637219…
Error msg as below:

API = MPRester("XXXXXXXXX")
data = API.get_bandstructure_by_material_id(material_id='mp-6702', line_mode=True)
print(data)

pymatgen.ext.matproj.MPRestError: REST query returned with error status code 504.

Is it beacuse of too much data being requested in one query? How to slove this?
Thanks!

Hi @bin

Is this error repeatable? This can happen when our servers are under a lot of load. If this happens intermittently that is likely the case. If you see it all the time, something else might be up.

Yes, it happens intermittently. I tried again and seems it works now, thanks for your help.