Skip to content

Query combination of filter and nested queries fails with "Accept version must be either version 8 or 7, but found 9. Accept=application/vnd.elasticsearch+json;compatible-with=9" #8512

Closed
@tudordumitriu

Description

@tudordumitriu

Elastic.Clients.Elasticsearch version**: 9.0.1

Elasticsearch version: 8.16.0

.NET runtime version: 8.0.15

Operating system version: Windows 11
Description of the problem including expected versus actual behavior:
When trying to execute a query a little more complex we are getting
"Accept version must be either version 8 or 7, but found 9. Accept=application/vnd.elasticsearch+json;compatible-with=9"
If we try to execute it directly via Postman by taking from debug the request all works fine

Steps to reproduce:

  1. Build complex query
  2. Execute it against Elastic Search 8.16.0

Expected behavior
Successful execution of the query

Provide ConnectionSettings (if relevant):

Provide DebugInformation (if relevant):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions