-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal error in node-inspect. Please report this bug. #19316
Comments
/ping @jkrems |
The 'internal error' message looks like a red herring to me, the real error is fairly benign: port 9229 is taken, probably by another node process. |
Thanks for the report! Yeah, this seems silly (agreed with @bnoordhuis that it just seems to be the blocked port, not an actual bug) and we should fix the output for this case. |
I was thinking maybe we can add if(e.code !== 'ECONNRESET')
console.error('There was an internal error in node-inspect. ' +
'Please report this bug.'); @jkrems @bnoordhuis wdyt ? |
Ping @jkrems @bnoordhuis. I can create a PR if you agree. |
@LEQADA Hm, that feels a little too much like a hack to me. Would logging a message followed by Note that a PR should go to nodejs/node-inspect. Once merged, it will make its way here on the next update. |
Alternatively: making it a non-fatal error. "Failed to start app. Please check that the port isn't used by anything else. Use |
I duplicated this issue to the node-inspect repo. Should we move the discussion there? |
Moving discussion to |
Just running
node debug .
tells me to report this bug. There doesn't need to be any actual module to run.I think it's harmless and just complaining about the used port. But node explicitly told me to report this bug, so I'm following the instructions given 👍.
The text was updated successfully, but these errors were encountered: