question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrangler login not getting token

See original GitHub issue

When I try to login the cli doesn’t create the token on the dashboard and save it locally.

Output

>   wrangler login
 ⛅️ wrangler 2.0.5
-------------------
Attempting to login via OAuth...
Successfully logged in.
>   wrangler whoami
 ⛅️ wrangler 2.0.5
-------------------
Getting User settings...

✘ [ERROR] ✘ [ERROR] Received a bad response from the API


    Unauthorized to access requested resource [code: 9109]

    If you think this is a bug, please open an issue at:
    https://github.com/cloudflare/wrangler2/issues/new




> node --version
v16.14.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
petebacondarwincommented, May 18, 2022

Discussed offline, and this issue appears to have gone away. Closing for now, but please re-open if it returns.

0reactions
fbritoferreiracommented, May 17, 2022

@petebacondarwin I can access the dashboard and after login I can see that no tokens get created.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrangler login problem - Workers - Cloudflare Community
Hello! Logging into your intended Cloudflare account in the browser, then running Wrangler Login should authenticate you to the right account.
Read more >
wrangler dev seems to work, but wrangler publish doesn't ...
When I run "wrangler publish" and go to the published site, it says "Unexpected token p in JSON at position 0". I've looked...
Read more >
Split tokens with Cloudflare Gateway | Curity Identity Server
In the split-tokens-worker directory edit the wrangler.toml file and put the ... from the cache const tokenValue = await TOKENS.get(hashedToken); if (!
Read more >
Wrangler | Noise
If you're just getting started with Workers, install Node.js, ... Previously, the wrangler login command used API tokens to authenticate Wrangler.
Read more >
wrangler - crates.io: Rust Package Registry
This command is the alternative to wrangler config and it uses OAuth tokens. wrangler login --scopes-list --scopes <scopes>.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found