Error 10000 when trying to deploy new project

For Workers & Pages, what is the name of the domain?

none

What is the error number?

10000

What is the error message?

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.

What is the issue or error you’re encountering

When running the first build and deploy for a new project with an automatically generated key, the deployment step fails with the error above.

What steps have you taken to resolve the issue?

  • I have checked that no Cloudflare API keys are in my project’s .env
  • I have tried creating and adding a key to my project’s .env
  • I have tried creating and adding a key to the env variables in the web ui

What are the steps to reproduce the issue?

This is the (attempted) first deploy of a project from github, based on the Tanstack Start Clerk Basic example project, configured for Cloudflare as outlined in the documentation.