I renamed my Worker in Dash and wrangler.toml, but became unauthorized in wrangler and can't deploy

Hello,

I deploy my worker via CLI.
I renamed one of my workers in Cloudflare Dash.
I updated the wrangler.toml.
If I try to deploy via CLI with wrangler now, it fails with :
✘ [ERROR] A request to the Cloudflare API (/accounts/cfXXXXXXXXXXXXXXXX/workers/scripts/share-worker) failed.

  workers.api.error.unauthorized [code: 10023]
  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

  workers.api.error.unauthorized [code: 10023]


wrangler whoami still shows me. I did wrangler logout and logged in again. But it still fails.
Was this page helpful?