Skip to content

fix(arxiv): remove a rejected failed-conversion page before falling back - #14

Merged
SproutSeeds merged 1 commit into
mainfrom
fix/remove-rejected-ar5iv-cache
Sep 30, 2026
Merged

SproutSeeds merged 1 commit into
mainfrom
fix/remove-rejected-ar5iv-cache

Conversation

@SproutSeeds

Copy link
Copy Markdown
Owner

When the cached copy of a paper is ar5iv's failed-conversion page and both ar5iv and the PDF mirror miss, the call falls through to the upstream arXiv server, which serves any cached Markdown file as it is, so the rejected page could still come back. The bridge now deletes the rejected cache entry before any fallback, and returns an error instead of forwarding when the file cannot be removed.

Found in review of the same change offered upstream (psi-oss#278).

Testing: new download_paper and read_paper tests with both fetch paths failing (both fail before this change); full suite 13029 passed with the three known environment failures.

When the cached copy of a paper is ar5iv's failed-conversion page and
both ar5iv and the PDF mirror miss, the call falls through to the
upstream server, which serves any cached Markdown file as it is, so
the rejected page could still come back. The bridge now deletes the
rejected cache entry before any fallback, and returns an error instead
of forwarding when the file cannot be removed. Adds download_paper and
read_paper tests with both fetch paths failing; both fail before this
change. Same fix as psi-oss#278 (found in review
there).
@SproutSeeds
SproutSeeds merged commit 5b81c3f into main Sep 30, 2026
24 checks passed
@SproutSeeds
SproutSeeds deleted the fix/remove-rejected-ar5iv-cache branch September 30, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant