Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
The response headers suggest why this was stuck in one region. Attestation documents are served from Cloudflare's cache with a one-year lifetime. Here is what a good copy looked like for me at 12:47 UTC on Nov 26, served by the Istanbul edge: $ curl -sS -D - -o /dev/null https://registry.npmjs.org/-/npm/v1/attestations/electron-publish@26.18.0
HTTP/1.1 200 OK
CF-Ray: a60901c7efa392d8-IST
CF-Cache-Status: HIT
Age: 126756
Cache-Control: public, max-age=31557600
Last-Modified: Wed, 25 Nov 2026 01:35:44 GMT
Both versions you mentioned return valid JSON from here now: If - run: curl -sS -D - -o /tmp/att.json https://registry.npmjs.org/-/npm/v1/attestations/electron-publish@26.18.0 | grep -iE '^(HTTP|cf-ray|cf-cache-status|age|last-modified)'; head -c 200 /tmp/att.jsonThe suffix of |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
The npm registry is returning the plain text
OKwith a success status for one package version's attestations document, but only to clients in one region.npm audit signaturesthen fails with a JSON parse error.Address
https://registry.npmjs.org/-/npm/v1/attestations/electron-publish@26.18.0What happens
The response is not an HTTP error. npm-registry-fetch raises a coded error for any status of 400 or above, and pacote calls
res.json()on this response without checking the status or content type, so the bodyOKarrived with a status below 400.Where
Only from GitHub-hosted Actions runners in Azure region
centralus. On Nov 25, 2026, 10 of 10 runs incentralusfailed this way, at 06:45, 06:48, 07:44, 08:07, 08:42, 09:37, 10:40, 11:11, 11:58 and 12:58 UTC. Over the same hours, 19 of 19 runs in other regions passed (westus,westus2,westus3,eastus,eastus2,southcentralus,westcentralus). Nocentralusrun passed in that window. Separately, one earlier run failed the same way forundici-types@7.24.6; I did not record which region that run used.What it is not
--cachepointing at a fresh temp directory), and three attempts over about a minute all got the same body.What a good answer looks like
From a client on the US west coast at 13:46 to 13:52 UTC the same day, 267 of 267 requests returned HTTP 200,
application/jsonand the full document, served by Cloudflare's Seattle edge withcf-cache-status: HITand anageof about 102,400 seconds. The origin sendscache-control: public, max-age=31557600. A cache-busting query string returned the same cache entry with the same age, so the query string is not part of the cache key.Likely cause, not confirmed
The edge cache serving
centralusholds a bad200 OKbody for that URL, and the one-year max-age keeps it there. I could not observe that edge directly.Request
Please purge the cached entry for that address, and check
attestations/undici-types@7.24.6as well. It would also help if a non-JSON body were never cacheable for these documents.Workaround
Moving to
electron-publish@26.18.1changes the address, andnpm audit signaturesthen passes fromcentralus.Client: npm 11.19.1 (pacote 21.5.1, npm-registry-fetch 19.1.1). pacote 22.0.1 has the same code path.
All reactions