Azure function - A system error occurred: uv_uptime returned EPERM (operation not permitted) #8202
Closed
3 tasks done
Labels
Package: node
Issues related to the Sentry Node SDK
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.53.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: 'the-dsn-here',
tracesSampleRate: 1.0,
environment: process.env.ENVIRONMENT,
});
Steps to Reproduce
Problem:
Using nodejs with 7.53.0 (and probably older versions, tested with 7.50) for azure functions crashes with a sentry package specific error when trying to capture an exception.
How to reproduce
Sentry.captureException(error)
andawait Sentry.flush(2000)
Azure Behaviour for os.uptime
It seems to me that azure functions now have os.uptime defined but one is still not allowed to call the function.
I did a quick print and got:
and in sentry:
with the code:
Fix?
a) Somehow have to fix the check inside
@sentry\node\cjs\integrations\context.js in getDeviceContext at line 183:34
. It seems that os.uptime is defined in azure function, but calling it still yields the system error. Therefore the current check is not viableThe code snippet:
b) Use the fix provided by @joelcollyer here by adding the device: false. E.g.
Expected Result
The error that was passed to Sentry.captureException() is captured in sentry
Actual Result
A permission error based on the sentry internal code is captured in sentry
The text was updated successfully, but these errors were encountered: