hundreds-football-16759
01/12/2024, 6:53 AM{
"response": "event.trim is not a function",
"firstAttemptedAt": "2024-01-12T06:47:43.428Z",
"content-type": ""
}
The track event looked like
rudderanalytics.track({
email: "aram@consolidate.health",
event: "Aram-Custom",
properties: {
data: "something something"
}
})millions-activity-52391
01/12/2024, 6:53 AMhundreds-football-16759
01/12/2024, 7:09 AMconsolidate-healthhundreds-lifeguard-65770
01/12/2024, 7:27 AMhundreds-lifeguard-65770
01/12/2024, 7:28 AMhundreds-football-16759
01/12/2024, 7:28 AMhelpful-daybreak-79835
01/12/2024, 10:18 AMemail should not be at the root level of the message.
Assuming you are using the Node SDK here is the data type for the track payloads,
https://github.com/rudderlabs/rudder-sdk-node/blob/1da270a75dbfc2dfddb6154cb62978716cf694cd/index.d.ts#L199hundreds-lifeguard-65770
01/12/2024, 10:19 AMhelpful-daybreak-79835
01/12/2024, 10:21 AMevent field is also not a string type. An error like this will pop up for this reason. Can you please double-check your instrumentation?