Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
handle ERR_CONNECTION_RESET gracefully
zadama3fa8341ba63
diff --git a/src/services/sync.js b/src/services/sync.jsindex 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();