Spaces:
Running

siddhm11 Claude Opus 5.5 commited on
Commit
933bf47
·
1 Parent(s): f894733

fix(citations): a batch Semantic Scholar knows none of is all unknown

Browse files

S2's batch endpoint answers 400 "No valid paper ids given" when it knows
none of the ids, instead of a list of nulls. The daily run sorts ids, so
its last batch is papers announced a few hours earlier; on 2026-10-21 the
batch from 2610.28261 on was all unknown at 08:50 UTC (all 309 found by
18:00). _post retried the 400 fourteen times (~10 min) and the run failed
after a clean ingest, skipping its verify stage.

That answer now means "every paper unknown", the same as a null per id,
so stored counts are kept and the run goes on. Rate limits still retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

2 files changed +36
Files changed (2)
scripts/refresh_citations.py+5
tests/test_refresh_citations.py+31