Skip to content

Unable to query #117

@mrosendorff

Description

@mrosendorff

I have recently started receiving the following error when attempting to query indexes using the java client version 6.0.1 with raven server version 6.2.5.

java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type net.ravendb.client.http.ServerNode$Role from String "Member": not one of the values accepted for Enum class: [NONE, MEMBER, REHAB, PROMOTABLE]
at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 1, column: 100] (through reference chain: net.ravendb.client.http.Topology["Nodes"]->java.util.ArrayList[0]->net.ravendb.client.http.ServerNode["ServerRole"])

and

Cannot deserialize value of type net.ravendb.client.http.ReadBalanceBehavior from String "RoundRobin": not one of the values accepted for Enum class: [NONE, ROUND_ROBIN, FASTEST_NODE]

It seems the client is expecting Screaming Snake Case for enums where the server is sending them in Pascal Case.

Could this be an issue of a version mismatch, it seemed to just start all of a sudden.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions