question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

7.x causes invalid range error (process.uptime)

See original GitHub issue

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/node@7.14.0

Link to Sentry event

https://sentry.io/organizations/koellisch-gmbh/issues/3591474722/events/c8b2672f4f444952a11d7e012d9302bd/

RangeError: Invalid time value
  ?, in Date.toISOString
  File "C:\home\site\wwwroot\node_modules\@sentry\node\cjs\integrations\context.js", line 177, col 64, in getDeviceContext
  File "C:\home\site\wwwroot\node_modules\@sentry\node\cjs\integrations\context.js", line 95, col 25, in Context._getContexts
  File "C:\home\site\wwwroot\node_modules\@sentry\node\cjs\integrations\context.js", line 51, col 46, in Context.addContext

Steps to Reproduce

  1. prerequisites: node v16.15.1, azure function js runtime 4.x (supports node 14.x - 16.x)
  2. setup Azure functions (with typescript)
  3. cause error/exception

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
timfishcommented, Oct 24, 2022

This fix made it into 7.14.1: https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7141

  • fix(node): Only set DeviceContext.boot_time if os.uptime() is valid (#5859)

If you are getting issues with any version after this, please open a new issue!

1reaction
Lms24commented, Oct 24, 2022

Hi @jlev the fix to this (#5226) was released in 7.14.1. Is this still a problem in 7.16.0?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download request refers to an invalid range. - GleamTech
Fixed: When downloading document parts (http range), instead of the actual error, "Download request refers to an invalid range"error could be thrown.
Read more >
Release Notes - Uptime Infrastructure Monitor 7.8.x
This release includes a fix that resolves some null check interval error messages unexpectedly appearing in uptime.log. Note that this fix only ...
Read more >
Uptime service is misconfigured - N-able
This occurs when there are no results for the WMI query being performed by the service, either WMI is damaged or the metric...
Read more >
Error Types | Uptrends
An overview of Uptrends error types.
Read more >
bash - Sed Invalid range end error with captured group
You're getting an Invalid range end error because you've wrote A-z inside your character class, which is a negative range ( z <...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found