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

Non-descriptive error for incorrect uuid #153

Open
DataGreed opened this issue Dec 19, 2024 · 0 comments
Open

Non-descriptive error for incorrect uuid #153

DataGreed opened this issue Dec 19, 2024 · 0 comments

Comments

@DataGreed
Copy link

  1. Send an event with custom uuid parameter set to something like "foo"
  2. Get an error [PostHog] failed to parse request: data did not match any variant of untagged enum RawRequest (400)

I expected to see a more descriptive error, like "uuid field should be a valid UUID" or something like that. It's also kind of weird that the library doesn't properly check uuid field and lets any string through if it expects it to be in UUID format.

That would have saved me an hour of debugging.

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