chore: Catch other types of client aborted error (#12303)

* chore: Catch other types of client aborted error

* Add EPIPE
This commit is contained in:
Tom Moor
2026-05-08 22:32:54 -04:00
committed by GitHub
parent fa990a33c0
commit 3670a918bb
+6
View File
@@ -26,6 +26,12 @@ export default function onerror(app: Koa) {
if (err.internalCode === 1002) {
err = ClientClosedRequestError();
}
} else if (
err.code === "HPE_INVALID_EOF_STATE" ||
err.code === "ECONNRESET" ||
err.code === "EPIPE"
) {
err = ClientClosedRequestError();
}
// Push only errors explicitly marked for Sentry reporting.