Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 BUG: Analytics Engine writeDataPoint not available locally #4258

Closed
cezarsmpio opened this issue Oct 23, 2023 · 1 comment
Closed
Labels
bug Something that isn't working

Comments

@cezarsmpio
Copy link

Which Cloudflare product(s) does this pertain to?

Other

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

3.14.0 [Wrangler]

What version of Node are you using?

18.18.2

What operating system are you using?

Mac

Describe the Bug

Trying to use Analytics Engine locally via wrangler dev (v3.14.0) but I get the following error:

TypeError
Cannot read properties of undefined (reading 'writeDataPoint') 

My wrangler.toml file:

[[analytics_engine_datasets]]
binding = "analyticsEngineDataset"

My code:

env.analyticsEngineDataset.writeDataPoint({
        blobs: [user.city, user.country],
        doubles: [order.amount],
	indexes: [user.id],
});

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

image

@cezarsmpio cezarsmpio added the bug Something that isn't working label Oct 23, 2023
@penalosa
Copy link
Contributor

Thanks for reporting this! Unfortunately Analytics Engine isn't currently supported in wrangler dev鈥攜ou can follow #4383 to see progress on it's implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants