You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] npm audit signatures shows an opaque JSON error when the registry returns a non-JSON attestations response #10368
A clear error that names the package and says the registry returned an invalid attestations response, for example:
npm error Could not verify attestations for @typescript-eslint/eslint-plugin@8.74.0: the registry returned an invalid response (content-type text/plain). This is usually a temporary registry problem; check https://status.npmjs.org or retry later.
Verification should still fail closed. Only the message needs to change.
Steps To Reproduce
From a client routed to the Cloudflare MAD edge (which currently serves a cached text/plain "OK" for this attestations URL):
Activity