Skip to content

Fix 500 for npm packages without any accessible versions - #1149

Merged
ezekg merged 1 commit into
masterfrom
fix/npm-missing-version
Sep 10, 2026
Merged

ezekg merged 1 commit into
masterfrom
fix/npm-missing-version

Conversation

@ezekg

@ezekg ezekg commented Sep 9, 2026

Copy link
Copy Markdown
Member

Fixes a NoMethodError from the npm package metadata endpoint when none of a package's artifacts are within the bearer's authz scope, e.g. an anonymous request for a package whose only versions are yanked. Now returns a 404, matching a package with no versions at all.

@ezekg
ezekg force-pushed the fix/npm-missing-version branch from b85b10f to a0087c9 Compare September 9, 2026 22:02
@ezekg
ezekg force-pushed the fix/npm-missing-version branch from a0087c9 to 598e423 Compare September 9, 2026 22:07
@ezekg
ezekg marked this pull request as ready for review September 9, 2026 22:09
@ezekg
ezekg merged commit b106037 into master Sep 10, 2026
22 checks passed
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