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
When attempting to send an event from Segment Analytics in our Flutter app, the event timestamp appears to be set in the future, causing the event to fail in Mixpanel with a 400 Bad Request error. This issue is likely due to a timestamp misalignment within the Flutter package.
Reproduction Steps:
Send an event from Segment Analytics in the Flutter app.
Observe that the timestamp is set in the future compared to the sentAt time.
This discrepancy causes Mixpanel to reject the event, as seen in the error response.
{
"body": {
"code": 400,
"error": "some data points in the request failed validation",
"failed_records": [
{
"field": "properties.time",
"index": 0,
"insert_id": "39c97213-92b2-4750-b79b-a92091d5be45",
"message": "'properties.time' is invalid: must not be in the future"
}
],
"num_records_imported": 0,
"status": "Bad Request"
},
"statusCode": 400,
"statusMessage": "Bad Request"
}
Details: In the input, the sentAt field (2024-10-31T17:50:15.238Z) is accurate, but the timestamp field (2024-10-31T23:20:10.615Z) is incorrectly set in the future. Mixpanel requires the event timestamp to be valid and within the current time frame, resulting in this failure.
Suspected Cause: This appears to be due to a potential timezone-related issue in the Segment Analytics Flutter SDK, where the timestamp is not being correctly synchronized with sentAt based on the device timezone.
Expected Outcome: The timestamp should be aligned with the actual event time (sentAt) to prevent Mixpanel from rejecting events due to a future-dated timestamp.
The text was updated successfully, but these errors were encountered:
We are facing exactly the same issue. and if you notice in this specific event there is no event name, which collect a lot of unnamed events in the failure to mixpanel.
Context
When attempting to send an event from Segment Analytics in our Flutter app, the event timestamp appears to be set in the future, causing the event to fail in Mixpanel with a 400 Bad Request error. This issue is likely due to a timestamp misalignment within the Flutter package.
Reproduction Steps:
Testing with Event Tester in Segment
Event Example Input
Error Response from Mixpanel:
Details: In the input, the sentAt field (2024-10-31T17:50:15.238Z) is accurate, but the timestamp field (2024-10-31T23:20:10.615Z) is incorrectly set in the future. Mixpanel requires the event timestamp to be valid and within the current time frame, resulting in this failure.
Suspected Cause: This appears to be due to a potential timezone-related issue in the Segment Analytics Flutter SDK, where the timestamp is not being correctly synchronized with sentAt based on the device timezone.
Expected Outcome: The timestamp should be aligned with the actual event time (sentAt) to prevent Mixpanel from rejecting events due to a future-dated timestamp.
The text was updated successfully, but these errors were encountered: