You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] ERR_IPC_CHANNEL_CLOSED showing up on new deployments #563
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
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.
changed the title [-][BUG] ERR_IPC_CHANNEL_CLOSED showing up on deployment[/-][+][BUG] ERR_IPC_CHANNEL_CLOSED showing up on new deployments[/+]on Apr 5, 2023
As soon as we can sort out the Github Workflow permissions. The first release has already been tagged.
Unfortunately my assistant in this effort lives almost exactly halfway around the world and it's taking a minute. We are trying to do this The Prometheus Way and that has more moving parts in some respects and fewer in others. I would say neither is wrong but one is a bit more frustrating at the moment, for less frustration later.
Activity
[-][BUG] ERR_IPC_CHANNEL_CLOSED showing up on deployment[/-][+][BUG] ERR_IPC_CHANNEL_CLOSED showing up on new deployments[/+]alencristen commentedon Jul 22, 2026
I’m working on this. I’ll guard worker responses after IPC disconnects and add focused regression coverage for the worker-side listener.
rebeccahum commentedon Aug 21, 2026
@jdmarshall Hello! When will this be released?
jdmarshall commentedon Aug 21, 2026
As soon as we can sort out the Github Workflow permissions. The first release has already been tagged.
Unfortunately my assistant in this effort lives almost exactly halfway around the world and it's taking a minute. We are trying to do this The Prometheus Way and that has more moving parts in some respects and fewer in others. I would say neither is wrong but one is a bit more frustrating at the moment, for less frustration later.