Hi all ๐Ÿ‘‹

Hi all ๐Ÿ‘‹
I get Authentication error [code: 10000] while trying to list page projects. Logging out and logging back in doesn't help. Wrangler is at the latest version 4.11.0. The account ID in the failed URL doesn't match the account ID in whoami. Is there some kind of cached account details I need to clear? Thanks in advance for any advice to get this sorted!
6 Replies
dinlashades
dinlashadesOPโ€ข6d ago
I'm not sure where exactly this started, but I was able to list and deploy pages projects with 4.3.0 (as far as I remember). At the moment installing 4.3.0 doesn't solve this. Even going back to v3. When I run the wrangler pages project list, I get the account picker. While I select the correct option and the request is being set to the correct account, authentication is for another one. However, while using the wrangler login, I don't have any option to pick the account.
Walshy
Walshyโ€ข6d ago
try doing rm -rf node_modules/.wrangler/cache
dinlashades
dinlashadesOPโ€ข6d ago
hi there, where should I look for that? wrangler is installed globally (and node is installed with fnm, same as nvm) Should it be somewhere close to the wrangler "binary"? I will try to find it. Wrangler is located at: /Users/noname/.local/state/fnm_multishells/51013_1744711023765/bin/wrangler I don't see anything like .wrangler/cache Ok, I see this in the source
dinlashades
dinlashadesOPโ€ข6d ago
Running with debug log... I see this line Retrieving cached values for account from node_modules/.cache/wrangler Checking that file in the local folder, it exists And it has correct account ID (the one that is used in URL) Let me try to find other similar files I found five different files like /.cache/wrangler/wrangler-account.json, which is weird because, in some of those projects, I've never installed wrangler; just ran it from the global installation Trying to run from the root user's directory... Running from the home directory gives: No folder available to cache configuration It asks me to pick the account and fails again I've tried to create vm using orbstack, install wrangler and login - same error. Can it be because I have multiple accounts? I have another profile where I have just one account, let me try that Yep, it worked. Looks like the Wrangler is having issues when the profile has multiple accounts. Can it be scopes issue?
dinlashades
dinlashadesOPโ€ข6d ago
https://github.com/cloudflare/workers-sdk/issues/8956 Opened ticket. @Walshy | Workers/Pages thanks for suggestion! It gave me some ideas how to debug this.
GitHub
Authentication error [code: 10000] when profile has multiple accoun...
Which Cloudflare product(s) does this pertain to? Wrangler What versions & operating system are you using? Wrangler v4.11.0, macOS 15.4 (24E248), node 23.11.0 Please provide a link to a minimal...

Did you find this page helpful?