Closed Startouf closed 3 years ago
Hey @Startouf, there seems to be a lot here. Can you split it into multiple issues?
@ankane I have edited the main post to clean up, it turns out the underlying problem was much simpler than I had imagined.
Regarding the other issue I had mentioned... well let's just drop it since I'm no longer concerned by the problem ^^"
Hey @Startouf, I updated the API to return 400 when missing required parameters in Ahoy 4.0 (just released). Thanks for the suggestion.
The ahoy endpoint returns a 200 even when the event creation is unsuccessful.
Here is an example of what may happen
(and nothing is saved in the database)
EDIT : the underlying problem was that the ahoy cookie domain was not set correctly and the JS script would send the events with null visitor + visit token, which caused the "missing required parameter" error in the log (and a 200 status code)
It had appeared as [FILTERED] in my request because I had added some backtrace filters for *_token 😅 but the values were null indeed