-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Elastic.Clients.Elasticsearch version: 8.13.2
Elasticsearch version: 8.13.2
.NET runtime version: 8.15.10
Operating system version: Windows 11
Description of the problem including expected versus actual behavior:
public async Task<string> CreatePitAsync(TimeSpan keepAlive, CancellationToken ct = default)
{
var keepAliveString = $"{(int)keepAlive.TotalMinutes}m";
var pitResponse = await _client.OpenPointInTimeAsync(new OpenPointInTimeRequest(_indexName)
{
KeepAlive = keepAliveString,
}
).ConfigureAwait(false);
if (!pitResponse.IsValidResponse)
throw new Exception($"Failed to create PIT: {pitResponse.DebugInformation}");
return pitResponse.Id;
}
Steps to reproduce:
- Create a client in the constructor
- Call the method
- You will get IsValidResponse = false with the DebufInformation: "does not support having a body", when analyzing the query in Fiddler it looks like {} is sent in the body but nothing should be sent.
Expected behavior
The client should not send {} in the body
Provide DebugInformation (if relevant):
This is how it looks like when sending the body like the client...

