# License information could not be obtained from Elasticsearch due to \[illegal\_argument\_exception\] request \[/\_xpack\] contains unrecognized parameter: \[accept\_enterprise\]

**URL:** https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990
**Category:** Kibana
**Tags:** license
**Created:** [May 3, 2021, 1:32pm UTC](https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990 "2021-05-03T13:32:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![IBoskov](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@IBoskov](https://discuss.elastic.co/u/IBoskov)
#### Post date: [May 3, 2021, 1:32pm UTC](https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990/1 "2021-05-03T13:32:36Z")

</div>

Hi there,  
We are trying to upgrade elasticsearch stack from 7.4.0 to 7.10.2, however when upgrading to 7.10.2 we are facing the following error message from kibana logs.

```auto
{"type":"log","@timestamp":"2021-05-03T13:20:35Z","tags":["warning","plugins","licensing"],"pid":1,"message":"License information could not be obtained from Elasticsearch due to [illegal_argument_exception] request [/_xpack] contains unrecognized parameter: [accept_enterprise] :: {\"path\":\"/_xpack?accept_enterprise=true\",\"statusCode\":400,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"illegal_argument_exception\\\",\\\"reason\\\":\\\"request [/_xpack] contains unrecognized parameter: [accept_enterprise]\\\"}],\\\"type\\\":\\\"illegal_argument_exception\\\",\\\"reason\\\":\\\"request [/_xpack] contains unrecognized parameter: [accept_enterprise]\\\"},\\\"status\\\":400}\"} error"}

```

Even a rolling upgrade from 7.10.1 to 7.10.2 does not seem to fix/bypass this issue, it only shows on 7.10.2.  
The license we have is a platinum tier.

Can anyone provide some guidelines as to what would be the best approach to fix this?  
If you require any more info I will attach whatever is needed.

Thanks

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 3, 2021, 2:13pm UTC](https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990/2 "2021-05-03T14:13:42Z")

</div>

Hi @IBoskov Welcome to the community.

Sorry you are having issues.

Since your are a platinum customer I highly recommend open a support case, they should be able to help you and are experts on these kind of issues.

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [May 3, 2021, 10:21pm UTC](https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990/3 "2021-05-03T22:21:44Z")

</div>

It sounds like you might still have a 7.4 node in your cluster.  
Can you double check?

```auto
GET /_cat/nodes?v=true&h=id,ip,port,v

```

---

<div class="post-metadata">

### Author: ![IBoskov](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@IBoskov](https://discuss.elastic.co/u/IBoskov)
#### Post date: [May 4, 2021, 8:10am UTC](https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990/4 "2021-05-04T08:10:05Z")

</div>

Hi @TimV all nodes are upgraded to 7.10.2, and as I mentioned this only happens when upgrading to 7.10.2.  
Previously the upgrade was on 7.10.1 and there was no issue related with the license, I wouldn't expect to have much changes between two sequential minor versions.

```auto
id port v
3Tiy 9300 7.10.2
RBWw 9300 7.10.2
cMCp 9300 7.10.2
8qsr 9300 7.10.2
wO1f 9300 7.10.2
ITK8 9300 7.10.2
uv3I 9300 7.10.2
tU28 9300 7.10.2

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 1, 2021, 8:10am UTC](https://discuss.elastic.co/t/license-information-could-not-be-obtained-from-elasticsearch-due-to-illegal-argument-exception-request-xpack-contains-unrecognized-parameter-accept-enterprise/271990/5 "2021-06-01T08:10:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
