Skip to content

Build your personal knowledge base with Trilium Notes

handle ERR_CONNECTION_RESET gracefully

zadama3fa8341ba63
diff --git a/src/services/sync.js b/src/services/sync.js
index 24b2024422..9102f3c874 100644
--- a/src/services/sync.js
+++ b/src/services/sync.js
@@ -60,6 +60,7 @@ async function sync() {
(e.message.includes('ECONNREFUSED') ||
e.message.includes('ERR_CONNECTION_REFUSED') ||
e.message.includes('ERR_ADDRESS_UNREACHABLE') ||
+ e.message.includes('ERR_CONNECTION_RESET') ||
e.message.includes('Bad Gateway'))) {
ws.syncFailed();