-
Notifications
You must be signed in to change notification settings - Fork 20
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
Sending a user_id of a number will 200 but event won't show in Dashboard #63
Comments
Hello, |
Yeah I understand that, therefore the fact that you can send an integer and not get an error response, and have the event silently disappear, is a bug. |
@tom-james-watson in your 200 response, do you have logs of the other metadata? e.g. how many events were ingested. in 1.0.x and onwards there is an issue where we silently throw away events with neither user nor device id. when I hit the http api with |
This was just basic testing in dev, so very limited number of events.
For what it's worth, the offending number was 4 chars, eg 3146. To be
clear, this is `3146`, not `"3146"`.
…On Wed, 18 Nov 2020, 20:50 Kelvin Lu, ***@***.***> wrote:
@tom-james-watson <https://github.com/tom-james-watson> in your 200
response, do you have logs of the other metadata? e.g. how many events were
ingested. in 1.0.x and onwards there is an issue where we silently throw
away events with neither user nor device id.
when I hit the http api with 123 I get a different response - it errors
because it is too short. I've found that creating numeric user ids of
length > 5 do get accepted though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5MTL2TELLXU3VCFGF2JMDSQQQP3ANCNFSM4T2J3GRA>
.
|
+1 here, we ran into this and were stuck on it for over a day. It's easy to overlook, the request should definitely not 200 when it fails to log the event or track anything. We were trying to track Amplitude should handle invalid data in a better way. |
Hey @Galkon , Sorry to hear that. We'll pass this on to our data ingestion team for the response being returned by the HTTP v2 API, and also include some better tooling in this SDK to validate the events better. |
If I send a
user_id
of123
, I get a200
response, but the event never appears in the web app, although I can see it in the "Successful requests" in "Sources".Expected Behavior
400
response, asuser_id
should be a stringThe text was updated successfully, but these errors were encountered: