[Cod-bugs] 'next' link does not save queried response_items

Andrius Merkys andrius.merkys at gmail.com
Mon Nov 29 17:58:34 EET 2021


Hi Oier,

On 2021-11-29 17:40, Oier Arcelus wrote:
> I am trying to use the OPTIMADE API implementation of COD, through the 
> pymatgen’s OptimadeRester class. I just realized that the ‘next’ links 
> that appear as responses do not conserve the queried response_fields.

[trimmed for brevity]

> And then when the OptimadeRester class tries to find the some of the 
> response_fields, it fails, as they are no longer present in the response 
> from the COD.
> 
> Is this a bug? Or is it a known thing in the implementation, for me it 
> makes it much harder to keep the information consistent across pagination.

Yes, this is a bug. Thanks for reporting it, I will look into it ASAP. 
Response fields (and all other parameters) have to stay the same between 
pages.

Best wishes,
Andrius

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Cod-bugs mailing list