`wrangler publish` returns error 10000

I create a simple wrangler worker project, and always fail to publish (or anything else) due to an auth 10000 error. I’ve logged out and back in, I’ve tried the global API key, I’ve repeatedly tried wrangler login.

Help please!

Steps:

$ wrangler generate my-app && cd my-app
$ nano wrangler.toml
add my account in the correct location
$ wrangler publish
:sparkles: Basic JavaScript project found. Skipping unnecessary build!
Error: Something went wrong with the request to Cloudflare…
Authentication error [API code: 10000]
$ wrangler preview --watch
Error: Something went wrong with the request to Cloudflare…
Authentication error [API code: 10000]