# How do we prevent stack trace from being getting displayed on Kibana?

**URL:** <https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494>\
**Category:** Kibana\
**Created:** [July 18, 2017, 4:22am UTC](https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494 "2017-07-18T04:22:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iam.xtreme](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iam.xtreme/32/20143_2.png) [@iam.xtreme](https://discuss.elastic.co/u/iam.xtreme)\
**Post date:** [July 18, 2017, 4:22am UTC](https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494/1 "2017-07-18T04:22:14Z")

</div>

If I try to access a kibana API like (localhost:5601/api/timelion/run), I get a stack trace displayed on the Web UI

 ![](https://us1.discourse-cdn.com/elastic/original/3X/1/9/198e54db7498981591f2bd6cdc675dc110e4632d.png). This exposes the details of kibana installation path. Similarly if there is an error while querying data, in that case as well the stack trace is thrown on the UI. Is there a way to disable this by some simple configurational change or anything else?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 19, 2017, 5:58pm UTC](https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494/2 "2017-07-19T17:58:17Z")

</div>

The error shown in the screenshot looks to me like a bug, because that endpoint (`api/timelion/run`) should only allow POST but we're able to get it to do something with a GET request.

It looks like you've already a bug filed on that: [https://github.com/elastic/kibana/issues/12963](https://github.com/elastic/kibana/issues/12963) Thank you!

Can you provide more information by what you mean when you say "if there is an error while querying data... the stack trace is thrown in the UI"? Is that specific to Timelion as well?

Generally an error querying for data through elasticsearch doesn't show a stack trace with install details about anything:

![](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cca46c09d658b34a26d5395ff9109ea546d560ca.png)

---

<div class="post-metadata">

**Author:** ![iam.xtreme](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iam.xtreme/32/20143_2.png) [@iam.xtreme](https://discuss.elastic.co/u/iam.xtreme)\
**Post date:** [July 20, 2017, 10:20am UTC](https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494/3 "2017-07-20T10:20:49Z")

</div>

Hi Tim,

I have observed this issue specific to Timelion itself. By 'stack trace being thrown on UI' I mean to say that it is being displayed in browser window/tab on hitting the mentioned endpoint.

As you rightly pointed out, stack trace is not displayed for others. But we do get a red bar on the UI with more details in it like this one. ![](https://us1.discourse-cdn.com/elastic/original/3X/3/4/34c2eaf94f6bbcb4210b3999ae7a5603fbb0f83b.png)  
The details even though displayed, are not readable. Plus these expose the JS file path where exception had occured

Do we have any way to disable this? I mean, do we have any configuration available so that we can disable this when Kibana is hosted in production mode? Or can we incorporate this in newer version released?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 20, 2017, 4:57pm UTC](https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494/4 "2017-07-20T16:57:16Z")

</div>

The bug that you filed in the Github repo is totally valid and needs to be fixed. I checked on it again, and there is a fix in the works: [https://github.com/elastic/kibana/pull/12973](https://github.com/elastic/kibana/pull/12973)

It is targeted to be backported to 5.5.1, which is the soonest possible patch release that it can be done in.

---

<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 17, 2017, 4:57pm UTC](https://discuss.elastic.co/t/how-do-we-prevent-stack-trace-from-being-getting-displayed-on-kibana/93494/5 "2017-08-17T16:57:35Z")

</div>

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