Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot export Canvas reports in master #25052

Closed
alexfrancoeur opened this issue Nov 2, 2018 · 8 comments
Closed

Cannot export Canvas reports in master #25052

alexfrancoeur opened this issue Nov 2, 2018 · 8 comments
Labels
bug Fixes for quality problems that affect the customer experience (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@alexfrancoeur
Copy link

alexfrancoeur commented Nov 2, 2018

I'm consistently able to reproduce this error when attempting to generate a report from a Canvas workpad.

image

It's possible this is because the workpads I'm using are multiple pages and a bit larger, but I'd expect this functionality to work. It's worth noting that I am using a 24 hour timepicker here as well, so I'm not sure if #23129 is related. That shouldn't require any user input and I'd imagine it'd be a very common use case that those sending reports would want the data to be limited to a certain timeframe.

kibana.yml reporting settings (I bumped up the timeout from 180000 to see if I could get a result):

xpack.reporting.capture.browser.type: "chromium"
server.maxPayloadBytes: 26214400
xpack.reporting.queue.timeout: 600000

Reporting logs:
report_log.log

Workpad for this specific log: https://github.com/alexfrancoeur/kibana_canvas_examples/tree/master/presentations/what_is_canvas

cc: @rashidkpc @stacey-gammon @w33ble @tsullivan

@alexfrancoeur alexfrancoeur added bug Fixes for quality problems that affect the customer experience (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Nov 2, 2018
@alexfrancoeur alexfrancoeur changed the title Exporting reports does not seem to be working with master Cannot export Canvas reports in master Nov 2, 2018
@stacey-gammon
Copy link
Contributor

I did just merge the export to png PR and forgot to manually test canvas, there is also no test coverage for canvas reporting. It's possible that broke something. Did you happen to note if 6.5 still works @alexfrancoeur?

@bgaddis56
Copy link
Contributor

I tested the 2 sample canvas workpads and they export to PDF with no errors. So I am assuming this issue is not related to the Export to PNG PR.

@stacey-gammon
Copy link
Contributor

Could be that one of the visualizations on the canvas workpad isn't updating with render_complete flag, that is often the case with the timeout errors.

@w33ble
Copy link
Contributor

w33ble commented Nov 2, 2018

Could be that one of the visualizations on the canvas workpad isn't updating with render_complete flag, that is often the case with the timeout errors.

If you are running in non-production mode, you'll see warnings in your console after 15 seconds if that's the case.

@alexfrancoeur
Copy link
Author

I've been having problems with this in the 6.x build as well. I'd be interested in hearing if anyone else is seeing this issue. @w33ble if you export this workpad as a PDF, do you run into timeout issues?

@bgaddis56
Copy link
Contributor

I was able to reproduce it. Looks like its timing out on the 3rd page. I set the timeout to 20 minutes and it still timed out so I think there is something with the workpad that is causing this.

@alexfrancoeur
Copy link
Author

I attempted to tweak some JSON that I believe fixed this issue that I thought was causing the reporting problem.

image

However, now my reports are failing with TimeoutError: waiting for selector "[data-shared-item],[data-shared-items-count]" failed: timeout 30000ms exceeded

This might be specific to my workpad. Not sure what's going on here. Any help would be appreciated but I am able to export smaller ones. After speaking with @rashidkpc, we timeout because reporting doesn't have much error handling. It'd be nice if we could fix this and provide more detailed error handling in the future.

@alexfrancoeur
Copy link
Author

I think I'm good here. I'll open another issue for better error handling with reporting. I'm now able to export after resolving that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

5 participants