amplitude / amplitude/Amplitude-Node

Minimal length for User Id

Đang mở
#105 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
73
Fork
20
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.