Open peter-leonov-hellofresh opened 4 months ago
Just noting what seems to have solved the problem in my case. I had to go into Workers & Pages -> Overview, and then on the righthand panel, I had to click "Setup" under the "Analytics Engine (beta)" heading. Then on that page I had to enable Analytics Cloudflare Engine via the CTA. After doing that my wrangler deploy worked, and I am now seeing analytics data when I query.
( I had also submitted a request to be included in the Beta on this page: https://www.cloudflare.com/lp/workers-analytics-engine/ but I'm not sure whether that's related. I only mention it because I don't remember noticing that "Analytics Engine (beta)" heading before. )
Hi @pnewsam. You're right, Analytics Engine currently requires enablement through the dashboard. This gate is a vestige of the beta, and we're working on removing it.
Another thing to not here for anyone finding this through google... You won't have an option to enable analytics, unless you have also already run / got a worker running. So i order to deploy via wrangler, i just made a garbage hello world deploy first, then flipped on analytics
I've removed the bug
label and added polish
, as this seems to be an issue with the error message more than anything else.
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 mywrangler.toml
file: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:Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs