Reputation: 1
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]"}
Invalid NEST response built from a unsuccessful () low level call on POST: /{someIndex}/_search?typed_keys=true Audit trail of this API call:
1.Ping(IRequestPipeline pipeline, Node node) at Elasticsearch.Net.Transport
1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
--- End of inner exception stack trace ---
Request:
<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>
Response: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
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