Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Internal error in node-inspect. Please report this bug.  #60

Closed
@LEQADA

Description

Description

When the port is busy – node-inspect throws a timeout exception which is logged as an internal error.

  • Version: v9.7.1
  • Platform: Windows 10 x64
  • Subsystem: node-inspect
node debug .
(node:14108) [DEP0068] DeprecationWarning: `node debug` is deprecated. Please use `node inspect` instead.
There was an internal error in node-inspect. Please report this bug.
Timeout (2000) waiting for 127.0.0.1:9229 to be free
Error: Timeout (2000) waiting for 127.0.0.1:9229 to be free
    at Timeout.setTimeout [as _onTimeout] (node-inspect/lib/_inspect.js:54:14)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:267:5)

Overview

Timeout message is generated here

setTimeout(() => {
didTimeOut = true;
reject(new Error(
`Timeout (${timeout}) waiting for ${host}:${port} to be free`));
}, timeout);

and then catched by a handler

function handleUnexpectedError(e) {
console.error('There was an internal error in node-inspect. ' +
'Please report this bug.');
console.error(e.message);
console.error(e.stack);
if (inspector.child) inspector.child.kill();
process.exit(1);
}

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions