# X-Pack Generate PDF report fails, HeadlessError

**URL:** <https://discuss.elastic.co/t/x-pack-generate-pdf-report-fails-headlesserror/106323>\
**Category:** Elasticsearch\
**Created:** [November 3, 2017, 2:18pm UTC](https://discuss.elastic.co/t/x-pack-generate-pdf-report-fails-headlesserror/106323 "2017-11-03T14:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ponten](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@ponten](https://discuss.elastic.co/u/ponten)\
**Post date:** [November 3, 2017, 2:18pm UTC](https://discuss.elastic.co/t/x-pack-generate-pdf-report-fails-headlesserror/106323/1 "2017-11-03T14:18:14Z")

</div>

Elasticsearch, KIbana, X-Pack ver: 5.5.0  
Operating system: Windows 10

I have a saved search. There are 20 hits in the search and I choose to "Generate Printable PDF".  
The following error message:

Unhandled rejection HeadlessError: Request() error evaluating createPage() call: Error: getaddrinfo ENOENT localhost:50039  
at ClientRequest. (C:\elastic\kibana-5.5.0\plugins\x-pack\node\_modules@elastic\node-phantom-simple\node-phantom-simple.js:510:18)  
at emitOne (events.js:96:13)  
at ClientRequest.emit (events.js:188:7)  
at Socket.socketErrorListener (\_http\_client.js:309:9)  
at emitOne (events.js:96:13)  
at Socket.emit (events.js:188:7)  
at connectErrorNT (net.js:1025:8)  
at \_combinedTickCallback (internal/process/next\_tick.js:80:11)  
at process.\_tickDomainCallback (internal/process/next\_tick.js:128:9)

Have read (1) on the forum and (2) regarding Win 10 specific issues regarding host address resolution and took following actions, without success:

- set the following in kibana.yml  
server.host: "127.0.0.1"

- disabled ipv6 on all interfaces according to KB929852

Any ideas in the Forum?

---

<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 8, 2017, 5:14pm UTC](https://discuss.elastic.co/t/x-pack-generate-pdf-report-fails-headlesserror/106323/2 "2017-11-08T17:14:58Z")

</div>

Hello,

Did you also allow Node.Js from the firewall when the prompt was displayed? It usually is displayed on Windows when you first try to generate a report.

---

<div class="post-metadata">

**Author:** ![ponten](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@ponten](https://discuss.elastic.co/u/ponten)\
**Post date:** [November 9, 2017, 6:01am UTC](https://discuss.elastic.co/t/x-pack-generate-pdf-report-fails-headlesserror/106323/3 "2017-11-09T06:01:49Z")

</div>

Hi, thx for feed-back. No I didn't do that, but I disabled the Firewall. Forgot to mention that.  
However, I can't recall that I got prompted the first time regarding to allow Node.js while the Firewall was active though.  
I'll try to enable some more debugging.

---

<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 7, 2017, 6:11am UTC](https://discuss.elastic.co/t/x-pack-generate-pdf-report-fails-headlesserror/106323/4 "2017-12-07T06:11:23Z")

</div>

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