Strange exception from C# Driver: "Excepted ResultResponse, obtained Cassandra.Responses.SupportedResponse"

26 views
Skip to first unread message

Valentine Bratoff

unread,
Dec 13, 2024, 1:36:08 PM12/13/24
to DataStax C# Driver for Apache Cassandra User Mailing List
Hello,

I am getting a strange, intermittent exception with the current C# Driver (3.22) and the Session.Execute(PreparedStatement) method:

Exception message:  Excepted ResultResponse, obtained Cassandra.Responses.SupportedResponse

(partial) Stack Trace: 
 at Cassandra.Requests.RequestExecution.ValidateResult(Response response) 
 at Cassandra.Requests.RequestExecution.HandleRowSetResult(Response response) 
 at Cassandra.Requests.RequestExecution.HandleResponse(IRequestError error, Response response, Host host)

I cannot find anything about "SupportedResponse" except for this old stub related to version 2.7.1:  https://www.fuget.org/packages/CassandraCSharpDriver/2.7.1/lib/net40/Cassandra.dll/Cassandra/SupportedResponse 

I am using .NET 7, if that matters, and I need to update to .NET 8 ASAP.

Much of the code related to this is proprietary/confidential, but I can put together a generic example if needed.

Thanks in advance!

Joao Reis

unread,
Dec 13, 2024, 1:57:24 PM12/13/24
to csharp-dr...@lists.datastax.com
Somehow the driver received a response for an OPTIONS request (which is sent at connection startup or heartbeats when there's a large enough period of time without any user request on a connection) but it expected an actual query result, I assume you can't reproduce this in a reliable way right? If you can then it would be great to have a code snippet that I can run myself to see what's going on.
What's the server version on your cluster nodes? Have you tried enabling driver logging at DEBUG level to see if you get any meaningful information? Can you share these driver DEBUG logs?

João Reis  

w. www.datastax.com

     



--
You received this message because you are subscribed to the Google Groups "DataStax C# Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to csharp-driver-u...@lists.datastax.com.
To view this discussion visit https://groups.google.com/a/lists.datastax.com/d/msgid/csharp-driver-user/1ef78ce9-9656-4124-9387-e5d7d6bb4c3fn%40lists.datastax.com.

Valentine Bratoff

unread,
Dec 13, 2024, 2:05:52 PM12/13/24
to DataStax C# Driver for Apache Cassandra User Mailing List, Joao Reis
Hello,

Thank you for the response! Indeed I cannot reproduce it reliably, but I can try to set up a Locust test to reproduce it intentionally.

I just verified with the DBA that all cluster nodes are on the latest version (5.0.2) as of November 26th, which was 11 days before I first saw this error, and 13 days after we deployed the webservice that is getting this exception.

I'll see if the DBA can enable debug logging and go from there.

Thank you!

Valentine Bratoff

unread,
Dec 13, 2024, 2:07:12 PM12/13/24
to DataStax C# Driver for Apache Cassandra User Mailing List, Valentine Bratoff, Joao Reis
Realized I misunderstood what you meant by debug logging - I can definitely get debug logs on my end. I'll update this thread when I get that.
Reply all
Reply to author
Forward
0 new messages