i m unable to authenticate with wrangler

i'm unable to authenticate with wrangler. i can go through wrangler login and approve everything just fine, but when it comes to running something like wrangler dev, i get authentication errors such as Authentication error [code: 10000]. i manually created an API token via the dashboard, and if i use that with the CLOUDFLARE_API_TOKEN environment variable, then things work! i wonder if the token generated by wrangler login is invalid somehow?
1 Reply
tao
taoOP2y ago
that's if i set my account_id in my wrangler TOML config. if i don't do that, then the error is a bit different:
✘ [ERROR] Failed to automatically retrieve account IDs for the logged in user.

You may have incorrect permissions on your API token. You can skip this account check by adding an
`account_id` in your `wrangler.toml`, or by setting the value of CLOUDFLARE_ACCOUNT_ID"
✘ [ERROR] Failed to automatically retrieve account IDs for the logged in user.

You may have incorrect permissions on your API token. You can skip this account check by adding an
`account_id` in your `wrangler.toml`, or by setting the value of CLOUDFLARE_ACCOUNT_ID"
Want results from more Discord servers?
Add your server