# 400 for “/api/console/proxy” after upgrading kibana from 6.4.0 to 6.7.1

**URL:** <https://discuss.elastic.co/t/400-for-api-console-proxy-after-upgrading-kibana-from-6-4-0-to-6-7-1/178576>\
**Category:** Kibana\
**Created:** [April 26, 2019, 7:33am UTC](https://discuss.elastic.co/t/400-for-api-console-proxy-after-upgrading-kibana-from-6-4-0-to-6-7-1/178576 "2019-04-26T07:33:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![c81b4c93b1f70af5398f](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/c81b4c93b1f70af5398f/32/45070_2.png) [@c81b4c93b1f70af5398f](https://discuss.elastic.co/u/c81b4c93b1f70af5398f)\
**Post date:** [April 26, 2019, 7:33am UTC](https://discuss.elastic.co/t/400-for-api-console-proxy-after-upgrading-kibana-from-6-4-0-to-6-7-1/178576/1 "2019-04-26T07:33:04Z")

</div>

After upgrading kibana from 6.4.0 to 6.7.1, some error logs repeatably occur below.

> {"type":"response","@timestamp":"2019-04-26T14:32:27+09:00","tags":,"pid":19036,"method":"post","statusCode":400,"req":{"url":"/api/console/proxy?path=\_aliases&method=GET","method":"post","headers":{"host":"XXX","connection":"keep-alive","content-length":"0","accept":"text/plain, _/_; q=0.01","origin":"XXX","kbn-version":"6.4.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36","referer":"[http://XXX/app/kibana","accept-encoding":"gzip](http://XXX/app/kibana%22,%22accept-encoding%22:%22gzip), deflate","accept-language":"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5"},"remoteAddress":"XXX","userAgent":"XXX","referer":"[http://XXX/app/kibana"},"res":{"statusCode":400,"responseTime":51,"contentLength":9},"message":"POST](http://XXX/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:400,%22responseTime%22:51,%22contentLength%22:9%7D,%22message%22:%22POST) /api/console/proxy?path=\_aliases&method=GET 400 51ms - 9.0B"}

It has no problem to use kibana pages.  
And It says "kbn-version":"6.4.0", but every ELK stack has been upgraded to the same version of 6.7.1.

---

<div class="post-metadata">

**Author:** ![c81b4c93b1f70af5398f](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/c81b4c93b1f70af5398f/32/45070_2.png) [@c81b4c93b1f70af5398f](https://discuss.elastic.co/u/c81b4c93b1f70af5398f)\
**Post date:** [April 26, 2019, 9:12am UTC](https://discuss.elastic.co/t/400-for-api-console-proxy-after-upgrading-kibana-from-6-4-0-to-6-7-1/178576/2 "2019-04-26T09:12:04Z")

</div>

so, to reply myself, It turns out we had some users who had never refreshed the browser on kibana console page after upgrading. It was just because the old client browser was sending header of "kbn-version: 6.4.0".

> > curl -X POST -H "kbn-xsrf: reporting" -H "kbn-version:6.4.0" [http://XXX/api/console/proxy\?path\=\_template\&method\=GET](http://XXX/api/console/proxy%5C?path%5C=_template%5C&method%5C=GET)  
> > {"statusCode":400,"error":"Bad Request","message":"Browser client is out of date, please refresh the page"}  
> > curl -X POST -H "kbn-xsrf: reporting" -H "kbn-version:6.7.1" [http://XXX/api/console/proxy\?path\=\_template\&method\=GET](http://XXX/api/console/proxy%5C?path%5C=_template%5C&method%5C=GET)  
> > (successful)

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [April 26, 2019, 3:22pm UTC](https://discuss.elastic.co/t/400-for-api-console-proxy-after-upgrading-kibana-from-6-4-0-to-6-7-1/178576/3 "2019-04-26T15:22:55Z")

</div>

Hey @c81b4c93b1f70af5398f thanks for following up with the solution that you found!

---

<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 24, 2019, 3:22pm UTC](https://discuss.elastic.co/t/400-for-api-console-proxy-after-upgrading-kibana-from-6-4-0-to-6-7-1/178576/4 "2019-05-24T15:22:56Z")

</div>

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