Replies: 4 comments
|
Thank you for your interest in contributing to our community! We currently only accept discussions created through the GitHub UI using our provided discussion templates. Please re-submit your discussion by navigating to the appropriate category and using the template provided. This discussion has been closed because it was not submitted through the expected format. If you believe this was a mistake, please reach out to the maintainers. |
|
Good catch—that While waiting for the npm registry team to fix/backfill the affected versions:
|
|
Good news: it looks fixed on the registry side now. I ran your reproduction again on 2026-11-25 at about 07:00 UTC, and all three affected versions now return the bundle: $ for v in 44.258.0 44.257.0 44.250.0; do
curl -s -o /dev/null -w "$v %{http_code} %{content_type} %{size_download}B\n" \
https://registry.npmjs.org/-/npm/v1/attestations/renovate@$v
done
44.258.0 200 application/json 14429B
44.257.0 200 application/json 14529B
44.250.0 200 application/json 14813BThe body for 44.258.0 parses as JSON and contains both attestations: the npm publish attestation ( If mise still reports |
|
I have the same issue but with a different package: $ npm audit signatures
npm error code FETCH_ERROR
npm error errno FETCH_ERROR
npm error invalid json response body at https://registry.npmjs.org/-/npm/v1/attestations/typescript-eslint@8.74.0 reason: Unexpected token 'O', "OK
npm error " is not valid JSON
npm error A complete log of this run can be found in: ... |
Uh oh!
There was an error while loading. Please reload this page.
For some published versions, the registry's attestations endpoint answers
200 text/plainwith the bodyOKinstead of the attestation bundle, even though the version'sdist.attestationspoints to that URL.Clients that verify provenance can't parse the response and refuse to install the package. For example, mise reports
npm attestations for renovate@44.258.0 are malformed: expected value at line 1 column 1.Reproduction
Other versions of the same package return the expected JSON:
OK(text/plain)OK(text/plain)OK(text/plain)The response is the same with cache-busting query strings and has stayed the same for several hours. It looks like the stored attestation bundle is missing for these versions, or a placeholder answer is being served.
Expected
The endpoint returns the attestation bundle JSON for every version whose metadata lists
dist.attestations. If no bundle exists, it returns a 404 and the metadata doesn't list one.All reactions