Closed jp2014 closed 1 year ago
Hi @jp2014, thanks for reporting this! Regarding the 5 characters limit, that's a default limit in our HTTP v2 API. There is a configuration minIdLength
that could be used and adjust the value for it.
Thanks for the suggestions on SDK behavior. Sending retries in this scenario could be avoided, and the character limit warning could be enforced earlier. We would make the improvements on our end.
cc @justin-fiedler @yuhao900914 @liuyang1520
Thanks @qingzhuozhen! Good to know. I've updated to use the minIdLength
configuration option and it works as expected.
Expected Behavior
User IDs with less than 5 characters can be used. Analytics events work as normal.
Current Behavior
User Ids with less than 5 characters cause this response from
https://api2.amplitude.com/2/httpapi
example captured request:
After a while, the SDK gets in a loop and starts sending 10 failing requests per second
Editing and resending a request with an ID longer than 5 characters results in a successful 200 response.
Possible Solution
Steps to Reproduce
analytics-android:1.6.1
dependencyEnvironment