-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Closed
Copy link
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 SDK are you using?
@sentry/aws-serverless
SDK Version
8.19.0
Framework Version
Node 20.14/Node 18
Link to Sentry event
There is no event
SDK Setup/Reproduction Example
import * as Sentry from '@sentry/aws-serverless';
import { nodeProfilingIntegration } from '@sentry/profiling-node';
Sentry.init({
dsn: 'MY_DSN',
integrations: [nodeProfilingIntegration()],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
Steps to Reproduce
Aws sam build the lambda but when i invoke locally or on via amazon server it just crash on start up.
Expected Result
To finish init and continue execution.
Actual Result
Lambda crash on start up. nodeProfilingIntegration() crash.
LOG:
undefined ERROR Uncaught Exception
{
"errorType": "TypeError",
"errorMessage": "The \"path\" argument must be of type string or an instance of URL. Received undefined",
"code": "ERR_INVALID_ARG_TYPE",
"stack": [
"TypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string or an instance of URL. Received undefined",
" at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)",
" at new NodeError (node:internal/errors:405:5)",
" at Object.fileURLToPath (node:internal/url:1477:11)",
" at Object.<anonymous> (/src/sdk.ts:384:50)",
" at Module._compile (node:internal/modules/cjs/loader:1364:14)",
" at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)",
" at Module.load (node:internal/modules/cjs/loader:1203:32)",
" at Module._load (node:internal/modules/cjs/loader:1019:12)",
" at Module.require (node:internal/modules/cjs/loader:1231:19)",
" at require (node:internal/modules/helpers:177:18)",
" at _tryRequireFile (file:///var/runtime/index.mjs:1002:37)",
" at _tryRequire (file:///var/runtime/index.mjs:1052:25)",
" at _loadUserApp (file:///var/runtime/index.mjs:1081:22)",
" at UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:27)",
" at start (file:///var/runtime/index.mjs:1282:42)",
" at file:///var/runtime/index.mjs:1288:7",
" at ModuleJob.run (node:internal/modules/esm/module_job:195:25)",
" at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)",
" at async loadESM (node:internal/process/esm_loader:34:7)",
" at async handleMainPromise (node:internal/modules/run_main:106:12)"
]
}
zolbayars, nekoya and jenssegers
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status