# Kibana Canvas Share: "Copy POST URL" error

**URL:** https://discuss.elastic.co/t/kibana-canvas-share-copy-post-url-error/212694
**Category:** Kibana
**Tags:** canvas
**Created:** [December 20, 2019, 5:41pm UTC](https://discuss.elastic.co/t/kibana-canvas-share-copy-post-url-error/212694 "2019-12-20T17:41:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AdrianSanchezLopez](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AdrianSanchezLopez](https://discuss.elastic.co/u/AdrianSanchezLopez)
#### Post date: [December 20, 2019, 5:41pm UTC](https://discuss.elastic.co/t/kibana-canvas-share-copy-post-url-error/212694/1 "2019-12-20T17:41:18Z")

</div>

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)](https://www.elastic.co/guide/en/kibana/7.5/automating-report-generation.html)

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...)`

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [December 26, 2019, 5:31pm UTC](https://discuss.elastic.co/t/kibana-canvas-share-copy-post-url-error/212694/2 "2019-12-26T17:31:50Z")

</div>

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

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [January 10, 2020, 2:25pm UTC](https://discuss.elastic.co/t/kibana-canvas-share-copy-post-url-error/212694/4 "2020-01-10T14:25:53Z")

</div>

So there is an actual bug here - [https://github.com/elastic/kibana/issues/53967](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 -

````auto
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

---

<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: [February 7, 2020, 2:27pm UTC](https://discuss.elastic.co/t/kibana-canvas-share-copy-post-url-error/212694/5 "2020-02-07T14:27:59Z")

</div>

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