Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,25 @@ core.start = async (commander) => {
return;
}

// ネットワークエラー (WebClient.js からの DNS/接続エラー) はリトライ対象
if (isNetworkError && isNetworkError(error)) {
errorCount++;
if (now - lastErrorTime > ERROR_THROTTLE_MS) {
if (errorCount > 1) {
console.error(`RTM network errors occurred (${errorCount} times since last report)`);
} else {
console.error("RTM network error caught:", error.message || "Unknown network error");
}
lastErrorTime = now;
errorCount = 0;
}
if (!isReconnecting) {
isReconnecting = true;
scheduleRtmRestart();
}
return;
}

// その他の予期しないエラーは通常通り処理
throw error;
});
Expand Down
Loading