-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
HEAD
requests to repo.yarnpkg.com
are rejected by the server, which returns a 404 error even though GET
requests work fine.
To reproduce
$ curl --head https://repo.yarnpkg.com/4.9.2/packages/yarnpkg-cli/bin/yarn.js
HTTP/2 404
date: Sun, 27 Jul 2025 01:13:52 GMT
content-type: text/plain;charset=UTF-8
content-length: 9
access-control-allow-origin: *
server: cloudflare
cf-ray: 965846d68f4b9883-KIX
$ curl --head https://repo.yarnpkg.com/tags
HTTP/2 404
date: Sun, 27 Jul 2025 01:10:12 GMT
content-type: text/plain;charset=UTF-8
content-length: 9
access-control-allow-origin: *
server: cloudflare
cf-ray: 9658417ae83b00d3-KIX
Environment
System:
OS: Linux 6.6 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (16) x64 AMD Ryzen 7 PRO 8840U w/ Radeon 780M Graphics
Binaries:
Node: 24.4.1 - /tmp/xfs-124c6b92/node
Yarn: 4.9.2 - /tmp/xfs-124c6b92/yarn
npm: 11.4.2 - ~/.local/share/mise/installs/node/24.4.1/bin/npm
pnpm: 10.13.1 - ~/.local/share/mise/installs/pnpm/10.13.1/pnpm
bun: 1.2.19 - ~/.local/share/mise/installs/bun/1.2.19/bin/bun
Additional context
I found this while looking at jdx/mise#5745.
mise uses HEAD
requests to verify if the URL exists before downloading the files.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working