diff --git a/src/Shared/StackExchangeClientConnection.cs b/src/Shared/StackExchangeClientConnection.cs index bbef7f06..d98b49c1 100644 --- a/src/Shared/StackExchangeClientConnection.cs +++ b/src/Shared/StackExchangeClientConnection.cs @@ -91,6 +91,12 @@ private object OperationExecutor(Func redisOperation) // Second call should pass if it was script not found issue return redisOperation.Invoke(); } + if (e.Message.Contains("READONLY")) + { + // Try once after reconnect + _sharedConnection.ForceReconnect(); + return redisOperation.Invoke(); + } throw; } }