Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/node
SDK Version
7.11.1
Framework Version
No response
Link to Sentry event
No response
Steps to Reproduce
Catch exception, call captureException
.
Expected Result
Exception being reported to Sentry
Actual Result
/home/node/node_modules/@sentry/utils/cjs/misc.js:25
crypto && crypto.getRandomValues ? () => crypto.getRandomValues(new Uint8Array(1))[0] : () => Math.random() * 16;
^
TypeError: Cannot read properties of undefined (reading '0')
at /home/node/node_modules/@sentry/utils/cjs/misc.js:25:87
at /home/node/node_modules/@sentry/utils/cjs/misc.js:30:19
at String.replace (<anonymous>)
at Object.uuid4 (/home/node/node_modules/@sentry/utils/cjs/misc.js:29:46)
at Hub.captureException (/home/node/node_modules/@sentry/hub/cjs/hub.js:130:86)
at /home/node/node_modules/@sentry/node/cjs/integrations/onuncaughtexception.js:71:17
at Hub.withScope (/home/node/node_modules/@sentry/hub/cjs/hub.js:98:7)
at OnUncaughtException.handler (/home/node/node_modules/@sentry/node/cjs/integrations/onuncaughtexception.js:69:15)
at process.emit (node:events:525:35)
at process.emit (node:domain:489:12)
at process._fatalException (node:internal/process/execution:167:25)