StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

Unexpected response prefix:

Open pianoman4873 opened this issue 2 years ago • 1 comments

Hello, I see in our logs that we sometimes get this response

---> StackExchange.Redis.RedisConnectionException: InternalFailure (None, last-recv: 1391) on localhost:6379/Interactive, Idle/Faulted, last: SMEMBERS, origin: ReadFromPipe, outstanding: 1, last-read: 0s ago, last-write: 0s ago, unanswered-write: 0s ago, keep-alive: 60s, state: ConnectedEstablished, mgr: 9 of 10 available, in: 0, in-pipe: 1391, out-pipe: 0, last-heartbeat: 0s ago, last-mbeat: 0s ago, global: 0s ago, v: 2.5.43.42402

---> System.InvalidOperationException: Unexpected response prefix:


at StackExchange.Redis.PhysicalConnection.TryParseResult(Arena1 arena, ReadOnlySequence1& buffer, BufferReader& reader, Boolean includeDetilInExceptions, ServerEndPoint server, Boolean allowInlineProtocol) in //src/StackExchange.Redis/PhysicalConnection.cs:line 1847

at StackExchange.Redis.PhysicalConnection.ProcessBuffer(ReadOnlySequence`1& buffer) in /
/src/StackExchange.Redis/PhysicalConnection.cs:line 1644

at StackExchange.Redis.PhysicalConnection.ReadFromPipe() in /_/src/StackExchange.Redis/PhysicalConnection.cs:line 1594\

Any idea what does this mean ? \

pianoman4873 avatar May 02 '22 13:05 pianoman4873

This is complaining that we didn't understand the response byte sequence - is your setup going through a proxy or load balancer by chance?

NickCraver avatar May 28 '22 20:05 NickCraver

If there's more info here, happy to look, but we'll definitely need more info to advise - closing out for now.

NickCraver avatar Sep 04 '22 21:09 NickCraver