# Inconsistent API Response "error: no handler found for uri"

**URL:** https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086
**Category:** Kibana
**Created:** [February 13, 2022, 10:51pm UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086 "2022-02-13T22:51:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)
#### Post date: [February 13, 2022, 10:51pm UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086/1 "2022-02-13T22:51:59Z")

</div>

Hey, doing API POST Requests via Python (on MacOS) I did:

`elastic_client.update(index='.internal.alerts-security.alerts-default-000001',id='a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7', body={"doc": {"kibana.alert.workflow_status": "acknowledged"}})`

and got the response:  
`ObjectApiResponse({'_index': '.internal.alerts-security.alerts-default-000001', '_id': 'a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7', '_version': 2, 'result': 'noop', '_shards': {'total': 0, 'successful': 0, 'failed': 0}, '_seq_no': 4585, '_primary_term': 1})`

But doing the exact same request on another machine (Ubuntu) I got:

```auto
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.RequestError: RequestError(400, 'no handler found for uri [/.internal.alerts-security.alerts-default-000001/_doc/a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7/_update] and method [POST]', 'no handler found for uri [/.internal.alerts-security.alerts-default-000001/_doc/a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7/_update] and method [POST]')
>>> elastic_client.update(index='.internal.alerts-security.alerts-default-000001',id='a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7', query={"doc": {"kibana.alert.workflow_status": "acknowledged"}})

```

doing the same on Postman (API tool) on MacOS I got the same error response:

```auto
http://10.24.1.5:9200/.internal.alerts-security.alerts-default-000001/_doc/a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7/_update
{
    "error": "no handler found for uri [/.internal.alerts-security.alerts-default-000001/_doc/a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7/_update] and method [POST]"
}

```

It seems to only work on my local machines python instance.

Did I do something wrong?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 13, 2022, 10:52pm UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086/2 "2022-02-13T22:52:52Z")

</div>

What version of the stack?  
What version of python and postman?

---

<div class="post-metadata">

### Author: ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)
#### Post date: [February 14, 2022, 12:08am UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086/3 "2022-02-14T00:08:33Z")

</div>

Oh sorry forgot that:

ELK is on 8.0  
Postman version 8.12.4 (8.12.4)  
Python on MacOS: 3.9.10  
Python on Linux: 3.8.10

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [February 14, 2022, 3:28am UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086/4 "2022-02-14T03:28:26Z")

</div>

[Update API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html) document says the request be:  
`POST /<index>/_update/<_id>`

Your url looks a bit different as:  
`POST /<index>/_doc/<_id>/_update`

Try:  
`/.internal.alerts-security.alerts-default-000001/_update/a9136c19ccfd95123cb2cf5697affbbdeb5a35c785ced06071f2777881aa33f7`

---

<div class="post-metadata">

### Author: ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)
#### Post date: [February 15, 2022, 7:07pm UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086/5 "2022-02-15T19:07:50Z")

</div>

Yes that works thank you. But maybe the python command needs fixing then.

---

<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: [March 15, 2022, 7:08pm UTC](https://discuss.elastic.co/t/inconsistent-api-response-error-no-handler-found-for-uri/297086/6 "2022-03-15T19:08:42Z")

</div>

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