Kibana Canvas Share: "Copy POST URL" error

I'm trying to generate a Watcher Report with Kibana Canvas 7.5.0, but when going to Canvas "Share"->"PDF Reports"->"Copy POST URL" the url I'm getting is something like:
https://<cloud-id>.eu-west-1.aws.found.io:9243/s/production/api/reporting/generate/printablePdf (with cloud-id being my actual id)

This does not seem to be the correct url needed for the Automatic report generation (doc)

Is this "Copy" button working correctly on Canvas? Because doing the same on the regular Kibana Dashboards it gives me the correct url with many jobParams like this:
(.../api/reporting/generate/printablePdf?jobParams=(browserTimezone:UTC,layout:(dimensions:(height:1800,width:2495),id:preserve_layout),objectType:dashboard,relativeUrls:!(%27%2Fapp%2Fkibana%23%2Fdashboard...)

Yeah I am not sure whats happening here. I will keep you posted.

Thanks,
Bhavya

Hi Bhavya
I am seeing the same thing - is there any update on this. Or is there any other way to get hold of the URL needed for the Watcher?
Thanks
Gordon

So there is an actual bug here - https://github.com/elastic/kibana/issues/53967 and its going to get fixed in 7.5.2 (upcoming)

This was also a regression in 7.5.0 . So you would be fine in previous versions.
As a workaround - you can try passing the json payload to the request -

curl 'http://user:pass@localhost:5601/vlq/api/reporting/generate/printablePdf' -H 'Accept: application/json' -H 'kbn-xsrf: professionally-crafted-string-of-text'  -H 'Content-Type: application/json'  --data-binary 
```{"jobParams":"(browserTimezone:America/Phoenix,layout:(dimensions:(height:2570,width:1100),id:preserve_layout),objectType:\'canvas workpad\',relativeUrls:\u0021(/app/canvas#/export/workpad/pdf/<workpad id>/page/1),title:\'example workpad\')"}' --compressed

Hope that helps

Thanks,
Bhavya

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