mirror of
https://github.com/outline/outline.git
synced 2026-12-04 18:34:54 +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:
1 parent
fa990a33c0
commit
3670a918bb
1 file changed
+6
@@ -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