For Workers & Pages, what is the name of the domain?
lingbox.dev
What is the error number?
10000
What is the error message?
A request to the Cloudflare API (/accounts/xxxx/pages/projects/xxxxx) failed.
What is the issue or error you’re encountering
Cannot authenticate / deploy
What steps have you taken to resolve the issue?
- Checked “user read” permission
- Created a new token
- Added CLOUDFLARE_API_TOKEN in ~/.wrangler/config/default.toml
- Added CLOUDFLARE_API_TOKEN in ./wrangler.toml
- Logout wrangler and login again (without success)
What are the steps to reproduce the issue?
I used to run wangler pages deploy
regularly without much problem. But this morining I cannot deploy successfully. The error message was:
Using “CF_API_TOKEN” environment variable. This is deprecated. Please use “CLOUDFLARE_API_TOKEN”, instead.
✘ [ERROR] A request to the Cloudflare API (/accounts/xxxx/pages/projects/xxxx) failed.
Authentication error [code: 10000]
It looks like you are authenticating Wrangler via a custom API token set in an environment variable.
Please ensure it has the correct permissions for this operation.
Getting User settings…
The API Token is read from the CLOUDFLARE_API_TOKEN in your environment.
You are logged in with an API Token. Unable to retrieve email for this user. Are you missing the
User->User Details->Read
permission?
To see token permissions visit https://dash.cloudflare.com/profile/api-tokens.
<<<<<<<<<<<<<<
Has anyone run into similar issues?