Skip to content
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

[BUG] ERR_IPC_CHANNEL_CLOSED showing up on new deployments #563

Open
ingeniumed opened this issue Apr 4, 2023 · 0 comments
Open

[BUG] ERR_IPC_CHANNEL_CLOSED showing up on new deployments #563

ingeniumed opened this issue Apr 4, 2023 · 0 comments

Comments

@ingeniumed
Copy link

The Problem

Our app uses the prom-client for updating several counters, via worker threads as well as the main thread. Whenever we do a deployment of our app, and if a worker thread with one of the counters active is interrupted it will give the following error

Screenshot 2023-04-04 at 14 46 24

The Likely Cause

It's these lines that are likely causing this error (as can be seen in the stack trace). The worker issuing the process.send has disconnected, and so when the process.send call is made it triggers this error.

It's the same as an issue seen nearly 3 years ago - #244.

A likely fix for this would be to wrap those process.send calls using:

if ( process.connected ) {
// do the process.send here
}

Hope that provides enough information for this issue.

@ingeniumed ingeniumed changed the title [BUG] ERR_IPC_CHANNEL_CLOSED showing up on deployment [BUG] ERR_IPC_CHANNEL_CLOSED showing up on new deployments Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants