-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Elastic.Clients.Elasticsearch version: 8.19.11
Elasticsearch version: 8.2.2
.NET runtime version: 9.0
Operating system version: Windows 10 Pro (22h2 build 19045.4412)
Description of the problem including expected versus actual behavior:
I'm trying to open PIT like this:
var esClient = new ElasticsearchClient(
new ElasticsearchClientSettings(
new StaticNodePool(new List<Uri> { new("https://esnode1:9200"), new("https://esnode2:9200") })
).RequestTimeout(TimeSpan.FromSeconds(60))
.Authentication(new BasicAuthentication("login", "pass"))
.ServerCertificateValidationCallback((o, certificate, chain, errors) => true)
.ServerCertificateValidationCallback(CertificateValidations.AllowAll)
);
var response = esClient.OpenPointInTime(new OpenPointInTimeRequest(Indices.Index("myindex")) { KeepAlive = "1m" });The response is 400 status with message: "request [POST /myindex/_pit] does not support having a body".
What am I doing wrong?