Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues are saved 3 hours in the past #2679

Closed
5 of 9 tasks
hyperknot opened this issue Jun 17, 2020 · 6 comments
Closed
5 of 9 tasks

Issues are saved 3 hours in the past #2679

hyperknot opened this issue Jun 17, 2020 · 6 comments

Comments

@hyperknot
Copy link

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.17.0

Description

I have a Create React App, made about 1 year ago, from which if I delete everything and insert only the following:

import * as Sentry from '@sentry/browser'

Sentry.init({
  dsn: '...',
})

Sentry.captureMessage('test')

It creates an issue which is 3 hours in the past. This is visible in the network panel as well, the request is sent with the wrong timestamp.

If I insert the same code to a brand new Create React App, made today, the event will have the correct timestamp.

Since I've removed all code from my app, I have no idea what can trigger this bug in Sentry, to make everything 3 hours in the past. Since migrating everything to a new Create React App is not a simple task, I'd like to try to fix it on the existing build config.

@rhcarvalho
Copy link
Contributor

I have no idea what can trigger this bug in Sentry,

This is most likely related to #2590. The browser reporting time in the past.

@hyperknot what browser are you using?

@hyperknot
Copy link
Author

@hyperknot what browser are you using?

Chrome 83 / macOS. What's interesting is that it really depends on the underlying Create React App / Webpack / Babel environment. If I make a new app based on a new CRA environment, it gets the date correctly.

@rhcarvalho
Copy link
Contributor

From the current report alone, this sounds like it would be hard to reproduce.

The event https://sentry.io/share/issue/61429f7eeba34cd6993736bfb5ae125c/ was received 2020-06-17T20:06:18.780Z, a few ms after the timestamp sent from the SDK.

Did you check on your browser's devtools network tab that the time that is being sent in the JSON payload matches the current time? Could you please verify?

Thanks!

@hyperknot
Copy link
Author

The issue got multiple events now, here is the first one:

image

@renchap
Copy link

renchap commented Jun 29, 2020

I just noticed the same issue, an error that happened right now (I triggered it) is reported as Sentry as having happened yesterday:
image

Event is 15deb2ada20347a2b27a24d78aced0de, JS SDK 5.18.0

@AbhiPrasad
Copy link
Member

Closing this issue as work was put in with #3356 to fix possible timing issues. If you are still encountering this problem, please re-open the issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants