What versions & operating system are you using?
System:
OS: Linux 6.6 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (16) x64 AMD Ryzen 7 7700 8-Core Processor
Memory: 51.42 GB / 62.65 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 24.7.0 - /home/mizchi/.local/share/mise/installs/node/24.7.0/bin/node
Yarn: 1.22.7 - /home/mizchi/.local/share/mise/installs/npm-yarn/1.22.7/bin/yarn
npm: 11.5.1 - /home/mizchi/.local/share/mise/installs/node/24.7.0/bin/npm
pnpm: 10.15.0 - /home/mizchi/.local/share/mise/installs/npm-pnpm/10.15.0/bin/pnpm
bun: 1.2.19 - /home/mizchi/.bun/bin/bun
Deno: 2.4.5 - /home/mizchi/.deno/bin/deno
npmPackages:
@cloudflare/vite-plugin: ^1.13.11 => 1.13.11
@cloudflare/workers-types: ^4.20251008.0 => 4.20251008.0
wrangler: ^4.42.1 => 4.42.1
I don't know if it's related, I use mirrored mode mirrored=true in ~/.wslconfig and updated ubuntu 24 recent
Please provide a link to a minimal reproduction
all projects
Describe the Bug
- Run
npx wrangler loginin terminal and browser opened in wsl terminal- Show
Attempting to login via OAuth... Visit this link to authenticate: <url>
- Show
- Open url in Chrome on Windows and click
Allow - Browser is redirected to https://welcome.developers.workers.dev/wrangler-oauth-consent-granted
- but does not work in terminal (wsl can't receive success callback)
Click Deny works without login.
Previous Workaround
This has happened a few times in the past, and I was able to avoid it by using the --browser=false workaround at the time, but now it doesn't work at all.
npx wrangler login --browser=falsecurl <url>
Now it does not work too and curl result shows this message.
<a href="https://dash.cloudflare.com/login?login_challenge=<hash>">Found</a>.
Log challenge link does not work too.
Please provide any relevant error logs
Run wrangler login and stop by ctrl-c x2 (no response after oauth login)
⛅️ wrangler 4.42.1
───────────────────
---
--- 2025-10-09T09:00:04.377Z log
Attempting to login via OAuth...
---
--- 2025-10-09T09:00:04.380Z log
Visit this link to authenticate: https://dash.cloudflare.com/oauth2/auth?response_type=code&client_id=...
---
--- 2025-10-09T09:00:56.611Z error
✘ [ERROR]
---
--- 2025-10-09T09:00:56.624Z debug
Error
at toErrorClass (<root>/node_modules/.pnpm/wrangler@4.42.1_@cloudflare+workers-types@4.20251008.0/node_modules/wrangler/wrangler-dist/cli.js:109554:10)
at isReturningFromAuthServer (<root>/node_modules/.pnpm/wrangler@4.42.1_@cloudflare+workers-types@4.20251008.0/node_modules/wrangler/wrangler-dist/cli.js:109561:11)
at Server.<anonymous> (<root>/node_modules/.pnpm/wrangler@4.42.1_@cloudflare+workers-types@4.20251008.0/node_modules/wrangler/wrangler-dist/cli.js:109811:27)
at Server.emit (node:events:508:28)
at Server.emit (node:domain:489:12)
at parserOnIncoming (node:_http_server:1168:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
---