Anyone run into the `[ERROR] Forbidden`

Anyone run into the [ERROR] Forbidden err manually deploying? This is the hello-container -> deploys ok when via cf Github action, but this fails
npx wrangler deploy
❯ npx wrangler deploy

⛅️ wrangler 4.21.1
───────────────────
Total Upload: 105.45 KiB / gzip: 25.41 KiB
Worker Startup Time: 11 ms
Your Worker has access to the following bindings:
Binding Resource
env.MY_CONTAINER (MyContainer) Durable Object

Uploaded hello-containers (5.20 sec)
Building image hello-containers:dbd9d60a

✘ [ERROR] Forbidden


🪵 Logs were written to "/Users/drew/Library/Preferences/.wrangler/logs/wrangler-2025-06-24_18-44-11_921.log"
hello-containers main 13s 20:44:24

npx wrangler deploy
❯ npx wrangler deploy

⛅️ wrangler 4.21.1
───────────────────
Total Upload: 105.45 KiB / gzip: 25.41 KiB
Worker Startup Time: 11 ms
Your Worker has access to the following bindings:
Binding Resource
env.MY_CONTAINER (MyContainer) Durable Object

Uploaded hello-containers (5.20 sec)
Building image hello-containers:dbd9d60a

✘ [ERROR] Forbidden


🪵 Logs were written to "/Users/drew/Library/Preferences/.wrangler/logs/wrangler-2025-06-24_18-44-11_921.log"
hello-containers main 13s 20:44:24

4 Replies
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Wonky Onion
Wonky Onion2mo ago
you'l want to be on the latest wrangler! you can trying logging out (npx wrangler logout) and logging back in, that might fix things (wonky cached perms) or if all else fails, an api key with containers:write permissions and setting the env var CLOUDFLARE_API_TOKEN
TobiLG
TobiLG2mo ago
Sounds like inavlid Logins. Had to do a wrangler login locally, which fixed the error in my case
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?