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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for strict=1 parameter in import api to support validation #233

Open
austinpray-mixpanel opened this issue May 14, 2024 · 0 comments
Assignees
Milestone

Comments

@austinpray-mixpanel
Copy link

We recommend setting strict=1 in our docs but there's not way to enable that using the SDK. We should add a configuration option to allow import to be strict.

https://developer.mixpanel.com/reference/import-events#validation

Validation
If you provide the strict=1 parameter (recommended), /import will validate the supplied events and returns a 400 status code if any of the events fail validation with details of the error. If some events pass validation and others fail, Mixpanel will ingest the events that pass validation. When you encounter a 400 error in production, simply log the JSON response, as it will contain the $insert_ids of the invalid events, which can be used to debug.

  • We could add a strict option to the import, import_batch methods
  • We could also add a strict option to the client to make all requests strict
@austinpray-mixpanel austinpray-mixpanel self-assigned this May 14, 2024
@austinpray-mixpanel austinpray-mixpanel added this to the v0.19.0 milestone May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant