You need to sign in or sign up before continuing.
If event definition is missing for event, show the error message in track_event API call
Problem
Currently, when we call /track_event
API in local GDK and if event definition is not present for that eventName then it just throws an error 500 without any reason.
reference - !138150 (comment 1681297048)
Desired Outcome
- Unknown events should return 422 instead of 500.
- A descriptive error message should be included in the response
Potential Solution
TBD
How to verify
Once changes are merged in master, If someone passes eventName which does not have an event definition file, then it will throw an error with appropriate description in local GDK.
Edited by Sebastian Rehm