# Worked in 5.3, upgraded to 6, now its busted =/

**URL:** <https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400>\
**Category:** Elasticsearch\
**Created:** [April 17, 2018, 4:17pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400 "2018-04-17T16:17:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmgarcia](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jmgarcia](https://discuss.elastic.co/u/jmgarcia)\
**Post date:** [April 17, 2018, 4:17pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/1 "2018-04-17T16:17:29Z")

</div>

Hey fellas,

I know its been a while since I have been on the forums but everything was working until our administrator decided to upgrade ES. Not a big deal, newer is better, right?

Anyway I am having issues with python 3.6 getting headers to play well with the new and improved ES. In the presvious version I didnt have to set headers, but now I do because I keep on getting "Http Error: 406 Client Error: Not Acceptable"... Here is the snip of code I think is where the issue is at.

```
headers = {'Content-Type': 'application/json'}

try:
    response = requests.get('{}/logstash*/_search'.format(url), data=json.dumps(data), headers=headers,
                            verify=False,
                            auth=(un, pw))
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 17, 2018, 4:36pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/2 "2018-04-17T16:36:53Z")

</div>

Can you try with post?

---

<div class="post-metadata">

**Author:** ![jmgarcia](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jmgarcia](https://discuss.elastic.co/u/jmgarcia)\
**Post date:** [April 17, 2018, 4:43pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/3 "2018-04-17T16:43:15Z")

</div>

doing a post gives me the same error:

> Http Error: 406 Client Error: Not Acceptable

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 17, 2018, 5:55pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/4 "2018-04-17T17:55:17Z")

</div>

Can you try sniffing the traffic with wireshark or something similar to see if the headers are actually sent to the server and look right?

---

<div class="post-metadata">

**Author:** ![jmgarcia](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jmgarcia](https://discuss.elastic.co/u/jmgarcia)\
**Post date:** [April 17, 2018, 6:18pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/5 "2018-04-17T18:18:38Z")

</div>

I am about to leave for the day. I can print them out tomorrow when I get back, do you have an example of what they _should_ look like? A print command should show what is being sent.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 17, 2018, 7:32pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/6 "2018-04-17T19:32:02Z")

</div>

It should look similar to what you get when you send a curl request that works.

---

<div class="post-metadata">

**Author:** ![FatalGlitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fatalglitch/32/30106_2.png) [@FatalGlitch](https://discuss.elastic.co/u/FatalGlitch)\
**Post date:** [April 18, 2018, 1:07am UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/7 "2018-04-18T01:07:19Z")

</div>

Is this running locally or by chance is it running through an AWS ALB?

---

<div class="post-metadata">

**Author:** ![jmgarcia](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jmgarcia](https://discuss.elastic.co/u/jmgarcia)\
**Post date:** [April 18, 2018, 1:05pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/8 "2018-04-18T13:05:10Z")

</div>

The server is local Fatal.

---

<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:** [May 16, 2018, 1:05pm UTC](https://discuss.elastic.co/t/worked-in-5-3-upgraded-to-6-now-its-busted/128400/9 "2018-05-16T13:05:42Z")

</div>

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