Dear All,
I’ve recently made a query as:
optimade-get https://nomad-lab.eu/prod/rae/optimade/ --use-async --filter ‘nelements = 2 AND elements HAS ALL “Sc”,“H”’ --max-results-per-provider 1000 --http-timeout 3000 --output-file bi-H-Sc.json
╭─────────────────────────────────────────────────────────────────────────────────╮
│ Performing query structures/?filter=nelements = 2 AND elements HAS ALL “Sc”,“H” │
╰─────────────────────────────────────────────────────────────────────────────────╯
Error: Provider ‘https://nomad-lab.eu/prod/rae/optimade/’ returned: [‘RuntimeError: 500 -
https://nomad-lab.eu/prod/rae/optimade/v1/structures?filter=nelements+%3D+2+AND+elements+H
AS+ALL+%22Sc%22%2C%22H%22&page_offset=460: ExtraData: unpack(b) received extra data.’]
✓ nomad-lab.eu/prod/rae/optimade/v1/structures ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 460/460 0:00:32
I have encountered 904 structures in the results. However, due to the default page_offset being set to 460, I am unable to retrieve all the data.
Infact, as you can see the optimade-get
client did a paging until it runs out of results. The error message is actually an error on the server side: optimade-get
tried to pull the page with offset 460 and the server returned "500 ExtraData: unpack received extra data"
, probably due to a bad entry somewhere in NOMAD.
You can see the same results in the browser with page_offset=460 at https://nomad-lab.eu/prod/rae/optimade/v1/structures?filter=nelements+%3D+2+AND+elements+HAS+ALL+"Sc"%2C"H"&page_offset=460.
or even with page_limit=1 at https://nomad-lab.eu/prod/rae/optimade/v1/structures?filter=nelements+%3D+2+AND+elements+HAS+ALL+"Sc"%2C"H"&page_offset=468&page_limit=1
Your suggestions on how to address this through paging would be greatly appreciated.
Thank you for your assistance.
Dr. Tuoc Vu
Hanoi Univ. of Science and Technology