Verify latest release
pnpm version
11
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Setup proxy with env variable https_proxy=xxx and then use pnpm publish to publish to npmjs. It will prompt with auth url and QR code, but will never continue even if you have passed auth in browser.
Describe the Bug
The publish procedure uses libnpmpublish, which will use proxy provided in env. While pollForWebAuthToken uses undici, which will not use proxy by default.
When first attempt to publish, proxy is used and authUrl/doneUrl is returned. When checking done status in pollForWebAuthToken, proxy is not used. So the ip address is different from the previous, result in the doneUrl always respond 403.
Expected Behavior
Use proxy to visit doneUrl. Able to publish normally.
Which Node.js version are you using?
24.15.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
11
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Setup proxy with env variable
https_proxy=xxxand then usepnpm publishto publish to npmjs. It will prompt with auth url and QR code, but will never continue even if you have passed auth in browser.Describe the Bug
The publish procedure uses
libnpmpublish, which will use proxy provided in env. WhilepollForWebAuthTokenuses undici, which will not use proxy by default.When first attempt to publish, proxy is used and authUrl/doneUrl is returned. When checking done status in
pollForWebAuthToken, proxy is not used. So the ip address is different from the previous, result in thedoneUrlalways respond 403.Expected Behavior
Use proxy to visit
doneUrl. Able to publish normally.Which Node.js version are you using?
24.15.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response