-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
7.x causes invalid range error (process.uptime) #5856
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
Comments
temporary fix is to rollback to v6 (6.19.7) |
Hi @Venipa, thanks for writing in and reporting! I took a quick look at the event and I think you're right with #5512 causing this. Might be related to this line:
Perhaps I'll open up a quick bugfix PR to get you back to v7. |
…id (#5859) When creating the `DeviceContext` in the Node SDK `Context` integration, we calculate the boot time based on `os.uptime`. However, as reported in #5856, `os.uptime` might not always be available or return undefined (I couldn't figure out which of the two cases actually was responsible). This patch fixes this bug by simply not setting the boot time in case we don't get a valid up time. It also adds two basic tests for this behaviour. I opted to not set the boot time instead of e.g. defaulting to `0` for uptime because IMO this creates a false boot time that probably causes more confusion than not having it.
I wanted to get to the bottom of this a little more because of @timfish's comment in the bugfix PR. I therefore created an Azure account and made a little test Http trigger function (Node 16, Windows, Azure Runtime 4). Turns out, Excerpt from the execution logs:
|
Since it came up:
|
This is causing a lot of false positive events in my Sentry account. I've muted the issue, but I'm worried about blowing through my quota this month. Any timeline on getting a new version of the node package out? Didn't see this change referenced in 7.16.0 |
|
This fix made it into 7.14.1:
If you are getting issues with any version after this, please open a new issue! |
Aha! Missed that point release. Thanks for the quick response, everyone. |
Hi @joelcollyer, would you mind opening a new issue? I'm not sure how related this is to the original issue, given that you're experiencing this in Express and the original issue was in Azur functions. Thanks :) |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/node
SDK Version
7.14.0
Framework Version
@sentry/[email protected]
Link to Sentry event
https://sentry.io/organizations/koellisch-gmbh/issues/3591474722/events/c8b2672f4f444952a11d7e012d9302bd/
Steps to Reproduce
Expected Result
exception to be submitted
Actual Result
event id is being generated but the exception is not being submitted
might be related to the pr from #5512
The text was updated successfully, but these errors were encountered: