Skip to content

Commit 89d80ba

Browse files
committed
fix: 404 Error POSTING session not found as connection error retry sse
1 parent da4ba02 commit 89d80ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mcp-proxy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ const isConnectionError = (err: any): boolean => {
334334
lowerMessage.includes("connection closed") ||
335335
lowerMessage.includes("transport is closed") || // SDK specific
336336
lowerMessage.includes("failed to fetch") ||
337-
lowerMessage.includes("not found") || //404
337+
lowerMessage.includes("not found") || //Error POSTING session not found
338+
lowerMessage.includes("404") ||
338339
lowerMessage.includes("eof") || // Network level
339340
lowerMessage.includes("tls") || // TLS handshake
340341
lowerMessage.includes("timeout") ||

0 commit comments

Comments
 (0)