Closed JayAtCricket closed 3 years ago
Hey @JayAtCricket !
First off, thanks so much for creating an application and creating an example - this will be super helpful for our data team. I'll go ahead and continue this investigation with our internal team to see if the possible soln you provided matches up with the root cause and follow up here. Let us know if you find other issues with event ingestion!
For us the OS is set to an empty string even when specifying os_name
fixed with v1.5.2, which is now available
Expected Behavior
If a user has an OS user property set from an event logged via the client-side library, then a subsequent event from the node library that omits user attributes in the payload should not override attributes with empty strings, namely the os_name attribute.
Current Behavior
Starting with a client event we get:
and after sending the node event we get an empty string that overrides the User's OS attribute:
Possible Solution
Somewhere in the API2 service the absence of an
os_name
in the payload is being interpreted as an empty string and that should be resolved.Steps to Reproduce
Please see here for a simple React application demonstrating this bug.
src/App.js
file with an appropriate Amplitude Project API keyyarn start
Environment