I've started having an issue with Facebook Pixel e...
# support
a
I've started having an issue with Facebook Pixel events, where events are failing with the error "Events must be sent within seven days of their occurrence or up to one minute in the future.". Looking at the requests, I can see the sentAt and recievedAt timestamps appear to be correct, but the timestamp and originalTimestamp are from 11 days ago. "sentAt": "2023-11-26T215655.452Z", "receivedAt": "2023-11-26T215656.534Z", "timestamp": "2023-11-15T062638.913Z", "originalTimestamp": "2023-11-15T062637.831Z" Anyone seen an issue like this before?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
a
This issue doesn't seem to be limited to Facebook. My GA4 destination has a similar issue but with a different error message: "Allowed timestamp is [72 hours] into the past" Example: "receivedAt": "2023-11-26T055129.715Z", "originalTimestamp": "2023-11-16T101904.587Z"
m
Hi David, sorry for the late reply. The sentAt and originalTimestamp are from the client so they are impacted by the client side timing. The receivedAt is set by the Rudder server. So either the events are old and are flushed later (because the app was closed) or the device time is incorrect. Also RudderStack calculates the timestamp using the formula mentioned in the link below. In your case it appears to be the former. Since both GA4 and FB do not allow such older events (Eg:- 72hrs in case of GA4) the transformer throws this error https://www.rudderstack.com/docs/destinations/warehouse-destinations/warehouse-schema/#standard-rudderstack-properties
a
Hi @shy-kite-21035 I continue to see this issue. In some cases the events are 2 months old. We are running the SDK in a web app, so it doesn't seem right that events from 2 months ago can suddenly be receive now. IS this a common issue? Is there any other reason events could be flushed through like this (aside from an app being closed)? It doesn't seem realistic for users to return to a browser tab 2 months later. Also the diffference in dates doesn't indicate a misconfigured local time....
m
Hi David, there could you share the entire event payload. This can happen in the case where the customer closes the app/browser before it gets a 2xx from the server and the source retries this event when the customer opens the app after a month. This can also happen when the customer device has the incorrect time. However, if these events are occurring with multiple customers we may need to take a closer look.