Creating PDF report via watcher - 404 error

I'm trying to create and send a pdf report from the dashboard via watcher.

The dashboard contains two simple visuals and the generation of the report directly in the dashboard works fine.

Now after coping the url and setting up a watcher, I do get an Email with the report attached, but the attachment contains only the 404 error:


In the report log, I found the following description of the problem:

          "output" : {
            "content_type" : "application/pdf",
            "size" : 50859,
            "warnings" : [
              """An error occurred when trying to open the Kibana URL. You may need to increase 'xpack.reporting.capture.timeouts.openUrl'. TimeoutError: waiting for selector ".application" failed: timeout 60000ms exceeded"""

After some research I found the issue, that exactly described my problem (except one point: my dashboard is on the default space):

I'm on 7.9.3 and not sure, if this version has already the bugfix for the issue above included.

Which version contains this bugfix?
Is there is something else, that should be checked to solve this problem?

Hey there!

So, that fix should have been in 7.9 and that bug was pretty specific to spaces due to how URLs were being built.

In the report log where you pulled that error, are you also able to pull out the URL that it's trying to hit when it gets the error?

Hi @poff,

here is the URL from the report log:

            "objects" : [
                "relativeUrl" : "/app/dashboards#/view/255f2f80-bfab-11eb-993a-a97d8f91f21f?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-7d,to:now))&_a=(description:'',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),timeRestore:!f,title:'ApiLogs',viewMode:view)"

and here is the URL in the watcher, which I copied from the dashboard:

            "reporting": {
              "url": "",
              "retries": 40,
              "interval": "15s",

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