You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Amplitude Node SDK for events reporting.
While implementing, we've noticed that when trying to log an event and attach it a user id that its length is lower than 5 chars, we get an error: Status code: 400, Status: invalid, Response body: {"error":"Invalid id length for user_id or device_id", ...}.
To overcome this error, we concatenated 5 leading spaces, after that, the error has gone and the logEvent function succeeded (we also validated that the leading spaces are trimmed in the Amplitude analytics site).
Could you please fix this issue, to avoid the 5 leading spaces trick?
SDK Version: 1.5.3
Node version: 15.6.0
The text was updated successfully, but these errors were encountered:
Hi @ZoharBergman. We suggest users stick to the minimum ID length (see here), but it can be overridden. The Node Client accepts an optional parameter minIdLength that will override the default minimum id length when set.
We are using Amplitude Node SDK for events reporting.
While implementing, we've noticed that when trying to log an event and attach it a
user id
that its length is lower than 5 chars, we get an error:Status code: 400, Status: invalid, Response body: {"error":"Invalid id length for user_id or device_id", ...}
.To overcome this error, we concatenated 5 leading spaces, after that, the error has gone and the
logEvent
function succeeded (we also validated that the leading spaces are trimmed in the Amplitude analytics site).Could you please fix this issue, to avoid the 5 leading spaces trick?
1.5.3
15.6.0
The text was updated successfully, but these errors were encountered: