# Kibana Reporting - Getting Error while downloading reports

**URL:** <https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414>\
**Category:** Reporting Plugin\
**Created:** [December 17, 2020, 7:14am UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414 "2020-12-17T07:14:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![blason](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@blason](https://forum.opensearch.org/u/blason)\
**Post date:** [December 17, 2020, 7:14am UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/1 "2020-12-17T07:14:07Z")

</div>

Hi Team,

Its great to see the Reporting Feature and its much awaited. I quickly started playing with it and found that I am unable to download the report. Once I clock on download the report it says “error generating the report”

Any clue?

TIA  
Blason R

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [December 18, 2020, 4:15pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/2 "2020-12-18T16:15:30Z")

</div>

@blason i would definitely report that as a bug.

> **[Issues · opendistro-for-elasticsearch/kibana-reports](https://github.com/opendistro-for-elasticsearch/kibana-reports/issues)**
>
> Kibana Reports. Contribute to opendistro-for-elasticsearch/kibana-reports development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![CyberGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/cybergod/32/617_2.png) [@CyberGod](https://forum.opensearch.org/u/CyberGod)\
**Post date:** [December 18, 2020, 10:32pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/3 "2020-12-18T22:32:52Z")

</div>

Hi, could you provide more details and error logs? Also, check our github issues see if there is a duplicate

---

<div class="post-metadata">

**Author:** ![blason](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@blason](https://forum.opensearch.org/u/blason)\
**Post date:** [December 19, 2020, 3:09am UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/4 "2020-12-19T03:09:23Z")

</div>

Yep - bug is already filed.

> <https://github.com/opendistro-for-elasticsearch/kibana-reports/issues/256>
>
> When trying to download a PDF or PNG report I get the message "Error downloading… report"
> 
> Error logs from kibana:
> \`{"type":"log","@timestamp":"2020-12-16T14:38:25Z","tags":\["info","plugins","opendistroReportsKibana"\],"pid":1,"message":"original queryUrl http://localhost:5601/app/visualize#/edit/cb329ba0-5e44-11ea-adc1-b1908ab22df5?\_g=(time:(from:'2020-12-15T17:22:46.415Z',to:'2020-12-15T17:52:46.415Z'))"}
> {"type":"log","@timestamp":"2020-12-16T14:38:25Z","tags":\["error","plugins","opendistroReportsKibana"\],"pid":1,"message":"Failed to generate report by id: Error: net::ERR\_EMPTY\_RESPONSE at http://localhost:5601/app/visualize#/edit/cb329ba0-5e44-11ea-adc1-b1908ab22df5?\_g=(time:(from:'2020-12-15T17:22:46.415Z',to:'2020-12-15T17:52:46.415Z'))"
> {"type":"log","@timestamp":"2020-12-16T14:38:25Z","tags":\["error","plugins","opendistroReportsKibana"\],"pid":1,"message":"Error: net::ERR\_EMPTY\_RESPONSE at http://localhost:5601/app/visualize#/edit/cb329ba0-5e44-11ea-adc1-b1908ab22df5?\_g=(time:(from:'2020-12-15T17:22:46.415Z',to:'2020-12-15T17:52:46.415Z'))\\n at navigate (/usr/share/kibana/plugins/opendistroReportsKibana/node\_modules/puppeteer-core/lib/FrameManager.js:120:37)\\n at process.\_tickCallback (internal/process/next\_tick.js:68:7)\\n -- ASYNC --\\n at Frame.\<anonymous\> (/usr/share/kibana/plugins/opendistroReportsKibana/node\_modules/puppeteer-core/lib/helper.js:111:15)\\n at Page.goto (/usr/share/kibana/plugins/opendistroReportsKibana/node\_modules/puppeteer-core/lib/Page.js:674:49)\\n at Page.goto (/usr/share/kibana/plugins/opendistroReportsKibana/node\_modules/puppeteer-core/lib/helper.js:112:23)\\n at createVisualReport (/usr/share/kibana/plugins/opendistroReportsKibana/server/routes/utils/visual\_report/visualReportHelper.ts:83:14)\\n at process.\_tickCallback (internal/process/next\_tick.js:68:7)"}
> {"type":"error","@timestamp":"2020-12-16T14:38:25Z","tags":\[\],"pid":1,"level":"error","error":{"message":"Internal Server Error","name":"Error","stack":"Error: Internal Server Error\\n at HapiResponseAdapter.toError (/usr/share/kibana/src/core/server/http/router/response\_adapter.js:132:19)\\n at HapiResponseAdapter.toHapiResponse (/usr/share/kibana/src/core/server/http/router/response\_adapter.js:86:19)\\n at HapiResponseAdapter.handle (/usr/share/kibana/src/core/server/http/router/response\_adapter.js:81:17)\\n at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:164:34)\\n at process.\_tickCallback (internal/process/next\_tick.js:68:7)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":"?timezone=America%2FNew\_York","query":{"timezone":"America/New\_York"},"pathname":"/api/reporting/generateReport/Xn2IZ3YBeSonxmmUeyVR","path":"/api/reporting/generateReport/Xn2IZ3YBeSonxmmUeyVR?timezone=America%2FNew\_York","href":"/api/reporting/generateReport/Xn2IZ3YBeSonxmmUeyVR?timezone=America%2FNew\_York"},"message":"Internal Server Error"}
> {"type":"response","@timestamp":"2020-12-16T14:38:25Z","tags":\[\],"pid":1,"method":"get","statusCode":500,"req":{"url":"/api/reporting/generateReport/Xn2IZ3YBeSonxmmUeyVR?timezone=America%2FNew\_York","method":"get","headers":{"host":"example.com","x-request-id":"91d37f92810f3839ef857a7ca04fdbcd","x-real-ip":"1.1.1.1","x-forwarded-for":"1.1.1.1","x-forwarded-host":"example.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-original-uri":"/api/reporting/generateReport/Xn2IZ3YBeSonxmmUeyVR?timezone=America%2FNew\_York","x-scheme":"https","kbn-version":"7.10.0","user-agent":"","content-type":"application/json","accept":"\*/\*","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://example.com/app/opendistro\_kibana\_reports","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"1.1.1.1","userAgent":"","referer":"https://example.com/app/opendistro\_kibana\_reports"},"res":{"statusCode":500,"responseTime":458,"contentLength":9},"message":"GET /api/reporting/generateReport/Xn2IZ3YBeSonxmmUeyVR?timezone=America%2FNew\_York 500 458ms - 9.0B"}
> \`
> 
> I have kibana setup to listen using TLS, connecting to it as http would result in an \`ERR\_EMPTY\_RESPONSE\` exception.
> 
> Perhaps the hard coded \`LOCAL\_HOST\` constant is the source of the problem?
> https://github.com/opendistro-for-elasticsearch/kibana-reports/blob/master/kibana-reports/server/routes/utils/constants.ts#L75

---

<div class="post-metadata">

**Author:** ![CyberGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/cybergod/32/617_2.png) [@CyberGod](https://forum.opensearch.org/u/CyberGod)\
**Post date:** [February 3, 2021, 6:24pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/5 "2021-02-03T18:24:27Z")

</div>

we are currently workin on it, you can expect a fix for the next ODFE release

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [February 4, 2021, 2:55pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/6 "2021-02-04T14:55:08Z")

</div>

Moved to new reporting category.

---

<div class="post-metadata">

**Author:** ![CyberGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/cybergod/32/617_2.png) [@CyberGod](https://forum.opensearch.org/u/CyberGod)\
**Post date:** [February 5, 2021, 6:44pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/7 "2021-02-05T18:44:20Z")

</div>

Issue is fixed and code is merged in `dev` branch, give it a try.  
PR: [Support customized server config by zhongnansu · Pull Request #313 · opendistro-for-elasticsearch/kibana-reports · GitHub](https://github.com/opendistro-for-elasticsearch/kibana-reports/pull/313)

Thanks

---

<div class="post-metadata">

**Author:** ![GSmith](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@GSmith](https://forum.opensearch.org/u/GSmith)\
**Post date:** [February 8, 2021, 8:53pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/8 "2021-02-08T20:53:16Z")

</div>

@CyberGod Will these changes from the dev branch be in the upcoming ODFE 1.13 release?

---

<div class="post-metadata">

**Author:** ![CyberGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/cybergod/32/617_2.png) [@CyberGod](https://forum.opensearch.org/u/CyberGod)\
**Post date:** [February 8, 2021, 10:44pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/9 "2021-02-08T22:44:11Z")

</div>

Yes, this fix will be included in ODFE 1.13

---

<div class="post-metadata">

**Author:** ![adkalavadia](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@adkalavadia](https://forum.opensearch.org/u/adkalavadia)\
**Post date:** [February 9, 2021, 5:59am UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/10 "2021-02-09T05:59:49Z")

</div>

What is release date of ODFE 1.13 ? any Idea ?

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [February 9, 2021, 2:20pm UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/11 "2021-02-09T14:20:32Z")

</div>

Target is mid-Feb, so soon.

---

<div class="post-metadata">

**Author:** ![blason](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@blason](https://forum.opensearch.org/u/blason)\
**Post date:** [February 14, 2021, 7:17am UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/12 "2021-02-14T07:17:59Z")

</div>

Well - I found the tweak by the time fixed is released. Set server.host to 0.0.0.0 and it should allow you to download the report.

---

<div class="post-metadata">

**Author:** ![Saravana37](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Saravana37](https://forum.opensearch.org/u/Saravana37)\
**Post date:** [August 25, 2021, 9:08am UTC](https://forum.opensearch.org/t/kibana-reporting-getting-error-while-downloading-reports/4414/13 "2021-08-25T09:08:15Z")

</div>

> [@blason](#):
>
> host

@blason ,

I am looking for a workaround for this issue. Do we have to change the value in Kibana.yml file ? Then what will be the Kibana URL?
