YANOVSK1Y
YANOVSK1Y

Reputation: 1

error : no handler found for uri (elasticSearch)

I have error when try to get data from elastic.

MacBook Pro 16 M1Pro JetBrains Rider 2023.3.3 project: net6.0 c#10 using Nest client version: 7.13.2 remote elastic version: "version" : { "7.17.8" }

Invalid NEST response built from a unsuccessful (400) low level call on POST: /{someIndex}/_search?typed_keys=true Audit trail of this API call: - [1] BadResponse: Node: http://{someService}.loc:9200/ Took: 00:00:00.4839970 OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 400 from: POST /{someIndex}/_search?typed_keys=true. ServerError: Type: Reason: "no handler found for uri [http://{someService}.loc:9200/{someIndex}/_search?typed_keys=true] and method [POST]" Request: {"query":{"term":{"someParam":{"value":"someId"}}}} Response: {"error":"no handler found for uri [http://{someService}:9200/{someIndex}/_search?typed_keys=true] and method [POST]"}

When i Update Nest to version 7.14.0 (and newest) i have different error:

Invalid NEST response built from a unsuccessful () low level call on POST: /{someIndex}/_search?typed_keys=true Audit trail of this API call:

But if i curl {elasticUrlIndex} in terminal - data returnes.

I already try change versions. on 7.14.0 (and newest) one type of error on latest - different error.

Upvotes: 0

Views: 203

Answers (1)

YANOVSK1Y
YANOVSK1Y

Reputation: 1

I solve this with DisableAutomaticProxyDetection()

Example of using:

var connectionPool = new SingleNodeConnectionPool(new Uri("someUrl"));
var connSettings = new ConnectionSettings(connectionPool)
    .DisableDirectStreaming()
    .DisableAutomaticProxyDetection();
var elasticClient = new ElasticClient(connSettings);

Upvotes: 0

Related Questions