cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.42k stars 594 forks source link

🐛 BUG: #6026

Open mcnielviray opened 3 weeks ago

mcnielviray commented 3 weeks ago

Which Cloudflare product(s) does this pertain to?

Workers for Platforms, Workers Runtime

What version(s) of the tool(s) are you using?

2.20.0

What version of Node are you using?

18.16.0

What operating system and version are you using?

Windows 11

Describe the Bug

Observed behavior

Please describe. Unable to deploy my created worker.

X [ERROR] A request to the Cloudflare API (/accounts/78bcd056079cc293ccb55ad04a79bccb/workers/scripts/ai-management-exp) failed.

Expected behavior

Please describe.

when I am running the "wrangler deploy src/index.ts --env exp". I am receiving an error

Steps to reproduce

Please provide the following:

A git repo we can clone and run a test suit on, or which has a README with step-by-step instructions, is even better. In this case, please use the field below to provide a link to the minimal repro.

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

worker error
petebacondarwin commented 3 weeks ago

The screenshot suggests that you are not authorized to deploy this Worker. Can you try wrangler whoami to confirm how you are authenticated? Perhaps you are using a CLOUDFLARE_API_TOKEN environment variable that is not valid for this Worker? Also I see you are on an old version of Wrangler, can you try updating to the latest?