ignore auto-updater QUIC protocol error (#1450)

This commit is contained in:
Mike Sawka 2024-12-09 18:36:53 -08:00 committed by GitHub
parent 9bae030371
commit 648fa4c49a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -546,6 +546,14 @@ process.on("uncaughtException", (error) => {
if (caughtException) {
return;
}
// Check if the error is related to QUIC protocol, if so, ignore (can happen with the updater)
if (error?.message?.includes("net::ERR_QUIC_PROTOCOL_ERROR")) {
console.log("Ignoring QUIC protocol error:", error.message);
console.log("Stack Trace:", error.stack);
return;
}
caughtException = true;
console.log("Uncaught Exception, shutting down: ", error);
console.log("Stack Trace:", error.stack);