I have a very simple plugin that scrapes a website a displays some text, however when I try to export this visualization as a pdf I have this error.
{"type":"log","@timestamp":"2017-11-16T18:48:12Z","tags":["reporting","debug"],"pid":30589,"level":"error","message":"Timeout exceeded (20000)","error":{"message":"Timeout exceeded (20000)","name":"Error","stack":"Error: Timeout exceeded (20000)\n at Timeout.waitForCheck [as _onTimeout] (/home/xxx/kibana/plugins/x-pack/plugins/reporting/server/lib/phantom/index.js:311:29)\n at ontimeout (timers.js:386:11)\n at tryOnTimeout (timers.js:250:5)\n at Timer.listOnTimeout (timers.js:214:5)"}}
{"type":"log","@timestamp":"2017-11-16T18:48:12Z","tags":["reporting","esqueue","worker","debug"],"pid":30589,"message":"ja2tval60nlpe897370rbyns - Failure occurred on job ja2tvve60nlpe8973704tw0m: Error: Timeout exceeded (20000)"}
I can export native visualizations with no problem so I don't know if I have some configuration wrong in my yml file or if my visualiztion plugin has some bade code.
So I'm trying to setup an environment to debug whats causing the error that causes the timeout. I've setup a project in WebStorm and have a run config working with --inspect --debug-brk. When I hit the provided url to debug the server side code, the file /home/xxx/kibana/plugins/x-pack/plugins/reporting/server/lib/phantom/index.js. I only see usr/lib/node_modules/npm in my file://
I'm not experienced developing javascript apps and I'm just looking for some guidance on how to debug kibana on the server side or some help properly configuring my plugins so that they export without error.
You guys have help me a lot already and its very appreciated.
Thanks,
Alex