# Exiting: error connecting to Kibana: fail to get the Kibana version: fail to unmarshal the response from GET

**URL:** <https://discuss.elastic.co/t/exiting-error-connecting-to-kibana-fail-to-get-the-kibana-version-fail-to-unmarshal-the-response-from-get/279704>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 27, 2021, 8:20am UTC](https://discuss.elastic.co/t/exiting-error-connecting-to-kibana-fail-to-get-the-kibana-version-fail-to-unmarshal-the-response-from-get/279704 "2021-07-27T08:20:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel.X](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel.x/32/77408_2.png) [@Daniel.X](https://discuss.elastic.co/u/Daniel.X)\
**Post date:** [July 27, 2021, 8:20am UTC](https://discuss.elastic.co/t/exiting-error-connecting-to-kibana-fail-to-get-the-kibana-version-fail-to-unmarshal-the-response-from-get/279704/1 "2021-07-27T08:20:05Z")

</div>

Hi there, I keep getting this error below:

> Kibana status api returns: json: cannot unmarshal string into Go struct field kibanaVersionResponse.version of type struct { Number string "json:"number""; Snapshot bool "json:"build\_snapshot"" }

I can curl successfully using the host provided and opening it in a browser as well. Any ideas what solution I can get with this? This is during the setup of metricbeat supplying the variables kibana.host, elasticsearch hosts, username, and password. I don't have typos as well in the cli. Using Kibana 5.6.8. Docker image elastic/metricbeat:7.13.4. Using Amazon Elasticsearch Service version 5.6.

Elasticsearch host format: https://\<elasticsearch\_endpoint\>:443  
Kibana host format: https://\<kibana\_endpoint\>:443/\_plugin/kibana

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [July 27, 2021, 9:06am UTC](https://discuss.elastic.co/t/exiting-error-connecting-to-kibana-fail-to-get-the-kibana-version-fail-to-unmarshal-the-response-from-get/279704/2 "2021-07-27T09:06:08Z")

</div>

Hi!

Could it be a compatibility issue? Do you use x-pack or oss versions? Also apart from `setup` are you able to ingest data to ES?

---

<div class="post-metadata">

**Author:** ![Daniel.X](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel.x/32/77408_2.png) [@Daniel.X](https://discuss.elastic.co/u/Daniel.X)\
**Post date:** [July 27, 2021, 9:30am UTC](https://discuss.elastic.co/t/exiting-error-connecting-to-kibana-fail-to-get-the-kibana-version-fail-to-unmarshal-the-response-from-get/279704/3 "2021-07-27T09:30:31Z")

</div>

I tried the oss and xpack versions on 7.13.4 and it output the same issue. I've only been in the `setup` stage so I don't think I'm able to ingest data to ES. Do I need to try older image tags on metricbeat? Or is there no backwards compatibility?

---

<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:** [August 24, 2021, 11:30am UTC](https://discuss.elastic.co/t/exiting-error-connecting-to-kibana-fail-to-get-the-kibana-version-fail-to-unmarshal-the-response-from-get/279704/4 "2021-08-24T11:30:42Z")

</div>

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