I just create a new license here : https://register.elastic.co/xpack_register
Then I download the license json file.
I follow this documentation to update license : https://www.elastic.co/guide/en/x-pack/current/installing-license.html
curl -XPUT -u elastic 'http://myhost:9200/_xpack/license' -d mylicensefile.json
I enter the password and receive this error :
{"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"},"status":400}
What can I do to solve this ?