Skip to content

Regression: Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available when using vercel/pkg #12223

Closed as not planned

Description

@munelear

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

8.4.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Build app with Sentry SDK 8.4.0 using pkg
  2. Run app and experience crash

I verified that using sentry 7.31.0 does not have this issue, as noted in issue #6769, this was previously fixed and at some point regressed.

Expected Result

App should not crash

Actual Result

Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available
    at new NodeError (node:internal/errors:388:5)
    at node:inspector:23:9
    at NativeModule.compileForInternalLoader (node:internal/bootstrap/loaders:329:7)
    at NativeModule.compileForPublicLoader (node:internal/bootstrap/loaders:269:10)
    at loadNativeModule (node:internal/modules/cjs/helpers:49:9)
    at Module._load (node:internal/modules/cjs/loader:792:20)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/cjs/helpers:102:18)
    at 86592 (/snapshot/dist/main.js) {
  code: 'ERR_INSPECTOR_NOT_AVAILABLE'
}

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 26, 2024
  2. munelear commented on May 27, 2024

    @munelear
    Author

    The regression appears to have happened in the 8.0.0 release timeframe. I am unable to reproduce this issue on 7.116.0.

  3. mydea commented on May 27, 2024

    @mydea
  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 27, 2024
  5. self-assigned this
    on May 27, 2024
  6. added a commit that references this issue on May 27, 2024
    5282753
  7. AbhiPrasad commented on May 27, 2024

    @AbhiPrasad
    Contributor
  8. munelear commented on May 28, 2024

    @munelear
    Author

    FYI- I tried pulling in release 8.5.0 but I was still experiencing this issue. I'll re-review the release documentation and check if there's something wrong on my end, but I wanted to give you a heads up that this may not be completely resolved yet.

  9. reopened this on May 28, 2024
  10. timfish commented on May 28, 2024

    @timfish
    Collaborator

    I can't reproduce any build or runtime errors with any v8 SDK version:

    package.json

    {
      "scripts": {
        "build": "pkg -t node18 index.js"
      },
      "dependencies": {
        "@sentry/node": "^8.5.0",
        "pkg": "^5.8.1"
      }
    }

    index.js

    const Sentry = require('@sentry/node');
    
    Sentry.init({
        dsn: '__DSN__',
        debug: true
    });
    
    setInterval(() => {
        console.log('Ping');
    }, 1000);

    Running:

    > yarn && yarn build
    > ./index
    
    Sentry Logger [log]: Initializing Sentry: process: 92870, thread: main.
    Sentry Logger [log]: Integration installed: InboundFilters
    Sentry Logger [log]: Integration installed: FunctionToString
    Sentry Logger [log]: Integration installed: LinkedErrors
    Sentry Logger [log]: Integration installed: RequestData
    Sentry Logger [log]: Integration installed: Console
    Sentry Logger [log]: Integration installed: Http
    Sentry Logger [log]: Integration installed: NodeFetch
    Sentry Logger [log]: Integration installed: OnUncaughtException
    Sentry Logger [log]: Integration installed: OnUnhandledRejection
    Sentry Logger [log]: Integration installed: ContextLines
    Sentry Logger [log]: Integration installed: LocalVariables
    Sentry Logger [log]: Integration installed: Context
    Sentry Logger [log]: Integration installed: Modules
    Sentry Logger [log]: Running in CommonJS mode.
    Sentry Logger [debug]: @opentelemetry/api: Registered a global for diag v1.8.0.
    Sentry Logger [debug]: @opentelemetry/api: Registered a global for trace v1.8.0.
    Sentry Logger [debug]: @opentelemetry/api: Registered a global for context v1.8.0.
    Sentry Logger [debug]: @opentelemetry/api: Registered a global for propagation v1.8.0.
    Sentry Logger [log]: Could not load NodeFetch instrumentation.
    Ping
    Ping
    Ping
    Ping
    Ping
    Ping
    Ping
    Ping
    
  11. moved this to Waiting for: Community in GitHub Issues with 👀 3on Jun 13, 2024
  12. getsantry commented on Jul 5, 2024

    @getsantry

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions