# Kibana is disconnecting after some load into elasticsearch

**URL:** https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264
**Category:** Kibana
**Created:** [November 18, 2019, 7:18am UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264 "2019-11-18T07:18:12Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 18, 2019, 7:18am UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/1 "2019-11-18T07:18:12Z")

</div>

"error":{"message":"Uncaught error: Expected originalHeaders to be an object, but object given".

{  
"statusCode": 500,  
"error": "Internal Server Error",  
"message": "An internal server error occurred"  
}  
can any one please help me on this?

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [November 18, 2019, 9:31pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/2 "2019-11-18T21:31:45Z")

</div>

Hello,

Is there anything showing up in the Kibana logs or the Elasticsearch logs?

---

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 19, 2019, 5:16am UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/3 "2019-11-19T05:16:48Z")

</div>

Thanks for your reply. This is what exactly showing in the Kibana logs.

{"type":"error","@timestamp":"2019-11-15T07:51:32Z","tags":,"pid":----,"level":"error","error":{"message":"Uncaught error: Expected originalHeaders to be an object, but object given","name":"Error","stack":"Error: Uncaught error: Expected originalHeaders to be an object, but object given  
at setHeaders (C:\kibana-6.4.1-windows-x86\_64\src\core\_plugins\elasticsearch\lib\set\_headers.js:32:11)  
at getConfigForReq (C:\kibana-6.4.1-windows-x86\_64\src\core\_plugins\console\index.js:91:53)  
at handler (C:\kibana-6.4.1-windows-x86\_64\src\core\_plugins\console\server\proxy\_route.js:113:11)  
at Object.internals.handler (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\handler.js:96:36)  
at Items.serial (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\handler.js:63:26)  
at done (C:\kibana-6.4.1-windows-x86\_64\node\_modules\items\lib\index.js:31:25)  
at done (C:\kibana-6.4.1-windows-x86\_64\node\_modules\items\lib\index.js:63:25)  
at pre (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\handler.js:52:24)  
at finalize (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\handler.js:281:20)  
at wrapped (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hoek\lib\index.js:879:20)  
at module.exports.internals.Response.internals.Response.\_processPrepare (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\response.js:521:16)  
at module.exports.internals.Response.internals.Response.\_prepare (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\response.js:460:21)  
at process.nextTick (C:\kibana-6.4.1-windows-x86\_64\node\_modules\hapi\lib\reply.js:152:22)  
at \_combinedTickCallback (internal/process/next\_tick.js:131:7)  
at process.\_tickDomainCallback (internal/process/next\_tick.js:218:9)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":"?path=\_search&method=POST","query":{"path":"\_search","method":"POST"},"pathname":"/api/console/proxy","path":"/api/console/proxy?path=\_search&method=POST","href":"/api/console/proxy?path=\_search&method=POST"},"message":"Uncaught error: Expected originalHeaders to be an object, but object given"}

---

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 19, 2019, 10:55am UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/4 "2019-11-19T10:55:16Z")

</div>

The Kibana version is 6.4.1

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [November 19, 2019, 12:52pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/5 "2019-11-19T12:52:26Z")

</div>

What exactly did you try in Kibana that lead to this? I'm trying to reproduce it locally.

---

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 19, 2019, 1:06pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/6 "2019-11-19T13:06:07Z")

</div>

We posted the data into ElasticSearch with automation tool for couple of days continuously in AWS environment. After 2 days the dash boards of Kibana in my application are not displaying. I found the above exception in the logs.  
If I restart the Kibana its working fine but after 4 to 5 hours I am facing the same issue.  
Kibana is not working from devtools also. Its gives 500 error with above stack trace.

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [November 19, 2019, 2:31pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/7 "2019-11-19T14:31:24Z")

</div>

If you run "GET \_cat/indices" in devtools, what does it return?

---

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 21, 2019, 5:33am UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/8 "2019-11-21T05:33:09Z")

</div>

"GET \_cat/indices" in devtools is giving the same 500 error. Even "GET \_cat/health",

"GET \_cat/thread\_pool" is also giving the same error.

{  
"statusCode": 500,  
"error": "Internal Server Error",  
"message": "An internal server error occurred"  
}

---

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 25, 2019, 10:12am UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/9 "2019-11-25T10:12:04Z")

</div>

Any help from any one on this issue.

---

<div class="post-metadata">

### Author: ![tdoan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tdoan/32/58298_2.png) [@tdoan](https://discuss.elastic.co/u/tdoan)
#### Post date: [November 25, 2019, 3:44pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/10 "2019-11-25T15:44:17Z")

</div>

I have exactly the same problem. I run Kibana from the Docker container. Currently, I just simply restart Kibana, then the problem goes away. But it will appear again after around 1 day. [This post](https://discuss.elastic.co/t/kibana-500-error-version-6-1-1/206699) is also about the same problem.

---

<div class="post-metadata">

### Author: ![Ryan\_Downey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_downey/32/35987_2.png) [@Ryan\_Downey](https://discuss.elastic.co/u/Ryan_Downey)
#### Post date: [November 25, 2019, 6:55pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/11 "2019-11-25T18:55:37Z")

</div>

Could this be a JVM heap issue? Not really sure but I figured I'd throw the idea out there. When troubleshooting some kibana issues I find that Elasticsearch is really the problem and its interfering with Kibana.

[https://www.elastic.co/guide/en/elasticsearch/reference/6.4/heap-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/heap-size.html)

---

<div class="post-metadata">

### Author: ![ksareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ksareddy/32/57851_2.png) [@ksareddy](https://discuss.elastic.co/u/ksareddy)
#### Post date: [November 26, 2019, 3:29pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/12 "2019-11-26T15:29:53Z")

</div>

Thanks for the reply **Ryan\_Downey**. I will look into this and will update here.

---

<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: [December 24, 2019, 3:30pm UTC](https://discuss.elastic.co/t/kibana-is-disconnecting-after-some-load-into-elasticsearch/208264/13 "2019-12-24T15:30:02Z")

</div>

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