I think the issue I have may be related to this. If not, my apologies. I am unable to query surface data information. I ran this exact code Friday and it worked. Is there a simple syntactical fix here as well?
with MPRester() as mpr:
surface_properties_doc = mpr.surface_properties.get_data_by_id("mp-30")
>>>---------------------------------------------------------------------------
MPRestError Traceback (most recent call last)
Input In [12], in <cell line: 1>()
1 with MPRester(api_key="") as mpr:
----> 2 surface_properties_doc = mpr.surface_properties.get_data_by_id("mp-30")
File /opt/conda/lib/python3.9/site-packages/mp_api/client/core/client.py:917, in BaseRester.get_data_by_id(self, document_id, fields)
912 results = self._query_resource_data(
913 criteria=criteria, fields=fields, suburl=document_id # type: ignore
914 )
916 if not results:
--> 917 raise MPRestError(f"No result for record {document_id}.")
918 elif len(results) > 1: # pragma: no cover
919 raise ValueError(
920 f"Multiple records for {document_id}, this shouldn't happen. Please report as a bug."
921 )
MPRestError: No result for record mp-30.