Skip to content

Commit 8d8bf7f

Browse files
authored
fix(socket): reconnect on moved errors (#1217)
1 parent 0a2f76e commit 8d8bf7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk-socket-server-next/src/analytics-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const getRedisOptions = (
7676
retryStrategy: (times) => Math.min(times * 30, 1000),
7777
reconnectOnError: (error) => {
7878
// eslint-disable-next-line require-unicode-regexp
79-
const targetErrors = [/READONLY/, /ETIMEDOUT/];
79+
const targetErrors = [/MOVED/, /READONLY/, /ETIMEDOUT/];
8080
return targetErrors.some((targetError) =>
8181
targetError.test(error.message),
8282
);

0 commit comments

Comments
 (0)