workers-sdk
workers-sdk copied to clipboard
🐛 BUG: `npm run deploy` errors out with `workers.api.error.no_access_to_analytics_engine [code: 10089]`
Which Cloudflare product(s) does this pertain to?
Other
What version(s) of the tool(s) are you using?
wrangler 3.57.2
What version of Node are you using?
v18.17.1
What operating system and version are you using?
14.5
Describe the Bug
Observed behavior
Deploying a worker with analytics_engine_datasets defined gives an error.
Expected behavior
There is no error and the worker starts and allows to send datapoints.
Steps to reproduce
Following the tutorial on how to use Workers Analytics Engine I've added the analytics_engine_datasets like this to my wrangler.toml file:
[[analytics_engine_datasets]]
binding = "METRICS"
dataset = "worker-dataset"
The rest is just the code generated by npm create cloudflare@latest.
Then trying to deploy using npm run deploy gives me an error: workers.api.error.no_access_to_analytics_engine [code: 10089]. Full output please see here:
% npm run deploy
> [email protected] deploy
> wrangler deploy
⛅️ wrangler 3.57.2
-------------------
Total Upload: 0.32 KiB / gzip: 0.24 KiB
Your worker has access to the following bindings:
- Analytics Engine Datasets:
- METRICS: worker-dataset
✘ [ERROR] A request to the Cloudflare API (/accounts/[REDACTED]/workers/scripts/worker) failed.
workers.api.error.no_access_to_analytics_engine [code: 10089]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
✘ [ERROR] A request to the Cloudflare API (/accounts/[REDACTED]/workers/scripts/[REDACTED]) failed.
workers.api.error.no_access_to_analytics_engine [code: 10089]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose