7.11 APIs who don’t need a body now return an error when provided with one #69532
Labels
:Core/Infra/REST API
REST infrastructure and utilities
>docs
General docs changes
Team:Core/Infra
Meta label for core/infra team
Team:Docs
Meta label for docs team
Elasticsearch version (
bin/elasticsearch --version
): 7.11.1 - docker imageDescription of the problem including expected versus actual behavior:
Hi,
I have been upgrading one of my clusters to 7.11.1 and much to my surprise there is a behavior change that I haven't been able to find in the breaking changes or in the "what's new" page for this release.
Now returns
Expected behavior:
Elastic should return the actual cluster state.
Now, the problem was in my ansible playbook because my
uri
module had thebody_format: json
property set when checking for the cluster's health so it was a good opportunity to clean up my code.Since I haven't found any mentions of this behavior change in the documentation or in the github issues, I thought I would put it out there for everyone as a head's up. Maybe someone in the elastic team can add it to the documentation?
This also affects
POST _flush/synced
and many other APIs I suppose.This is confirmed to work in 7.7.0 and I believe 7.10.2 too but it will return an error in 7.11.1
Original post : https://discuss.elastic.co/t/7-11-apis-who-dont-need-a-body-now-return-an-error-when-provided-with-one/265324
The text was updated successfully, but these errors were encountered: