# Kibana looks like it cancels requests if they take more than 30 seconds?

**URL:** <https://discuss.elastic.co/t/kibana-looks-like-it-cancels-requests-if-they-take-more-than-30-seconds/219689>\
**Category:** Kibana\
**Created:** [February 18, 2020, 12:22am UTC](https://discuss.elastic.co/t/kibana-looks-like-it-cancels-requests-if-they-take-more-than-30-seconds/219689 "2020-02-18T00:22:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fallenreaper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fallenreaper/32/62407_2.png) [@fallenreaper](https://discuss.elastic.co/u/fallenreaper)\
**Post date:** [February 18, 2020, 12:22am UTC](https://discuss.elastic.co/t/kibana-looks-like-it-cancels-requests-if-they-take-more-than-30-seconds/219689/1 "2020-02-18T00:22:40Z")

</div>

I was running the newest version of Kibana, 7.6. I was noticing that during ingestion process, some of my visualizations are taking over 30 seconds. When they take that long it will expose the error:

```auto
[esaggs] > Unexpected token u in JSON at position 0

```

When looking at the network request, it says cancelled. I think that it auto-cancels requests but it seems that the timeout will occur around the 30 second mark.

I have some visualizations for the last 2 days, pretty much monitoring the counts of ingestion per host. I am running a single, dual purpose data/master node, which is likely why kibana requests are taking so long.

Before I start building out and adding more machines to the ES instance, I want to see if this is actually a bug or not. It seems that _sometimes_ when I set the relative conditions to under 3 recent hours, it will display the graphs.

Thoughts or recommendations?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 18, 2020, 12:03pm UTC](https://discuss.elastic.co/t/kibana-looks-like-it-cancels-requests-if-they-take-more-than-30-seconds/219689/2 "2020-02-18T12:03:06Z")

</div>

Hi @fallenreaper,

The error message isn't nice and doesn't really help. There is an issue for this which is actively worked on: [https://github.com/elastic/kibana/issues/57327](https://github.com/elastic/kibana/issues/57327)

You are completely correct though - the Kibana server is taking longer than 30 seconds to fetch the data from Elasticsearch, this is why it gives up and just shows an error. If your requests sometimes take longer, you can increase the value in your `kibana.yml` file by giving `elasticsearch.requestTimeout` a value greater than `30000` (the unit is ms). The default is just in place here to prevent super expensive queries submitted by accident to run forever and slowing down your cluster.

Reference: [https://www.elastic.co/guide/en/kibana/current/settings.html](https://www.elastic.co/guide/en/kibana/current/settings.html)

That being said, \> 30s load time is a lot. Maybe it is possible to tune your server a bit without adding hardware. For guidance around this you can post in the [ES forum](https://discuss.elastic.co/c/elasticsearch/6) and I'm sure you will find help.

---

<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 17, 2020, 12:03pm UTC](https://discuss.elastic.co/t/kibana-looks-like-it-cancels-requests-if-they-take-more-than-30-seconds/219689/3 "2020-03-17T12:03:08Z")

</div>

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