mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
chore: Catch other types of client aborted error (#12303)
* chore: Catch other types of client aborted error * Add EPIPE
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user