Skip to content

Internal error occurred during message handling | errno: -32 #437

Answered by enisdenjo
mondial7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, the error write EPIPE means that the program tried to write to a closed socket. We already prevent writing to a non-ready socket:

graphql-ws/src/use/ws.ts

Lines 135 to 139 in eea18ce

send: (data) =>
new Promise((resolve, reject) => {
if (socket.readyState !== socket.OPEN) return resolve();
socket.send(data, (err) => (err ? reject(err) : resolve()));
}),

The error probably stems from the ws library itself or some internal Node issue.

If you manage to reproduce this locally, I'd be more than happy to dig in and try to figure out the root cause! Sorry for the wait and if I was not very helpful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants