Closed ipats86 closed 3 years ago
Thanks for your error report.
Unfortunately it looks like you found a part of the 5% missing test coverage... well done! :-)
As of this bug, I am now only guessing. Please try to render the panel manually in grafana. Therefore click on the title and select "Share"
Select the rendering link
Do you get something like this? Or do you get a working image as a result?
If you receive such an error message, please install the grafana image rendering plugin, 'cause otherwise grafana is not capable in providing images.
Further questions (if not already solved by the above): Did you create the demo report manually, or by using the wizard? Could you please provide the image rendering portions of your demo report? Try removing the grafana_panel_image rendering rows from your report file. Is it then rendering properly?
Hello,
Thank you very much for your prompt response. It seems like I hit the jackpot!
At first the direct link rendered image wasn’t working besides the installation of the grafana image rendering plugin. I found the solution posted in the below issue and now when I click on the Direct rendered image link, the image is rendered with success in a separate tab!!
https://github.com/grafana/grafana-image-renderer/issues/159
When I start the ruby-grafana-reporter and try to create the report from the Link button, the panels are still not printed in the pdf file. I get the below Fatal errors:
F, [2021-05-18T23:37:11.215734 #25593] FATAL -- : undefined method []' for nil:NilClass F, [2021-05-18T23:37:11.217283 #25593] FATAL -- : undefined method
id' for nil:NilClass
F, [2021-05-18T23:37:15.103025 #25593] FATAL -- : undefined method []' for nil:NilClass F, [2021-05-18T23:37:15.121621 #25593] FATAL -- : undefined method
id' for nil:NilClass
I also notice some warnings:
/usr/local/rvm/gems/ruby-2.7.0/gems/ruby-grafana-reporter-0.4.0/lib/grafana_reporter/abstract_query.rb:94: warning: deprecated Object#=~ is called on Integer; it always returns nil
/usr/local/rvm/gems/ruby-2.7.0/gems/ruby-grafana-reporter-0.4.0/lib/grafana_reporter/abstract_query.rb:94: warning: deprecated Object#=~ is called on Integer; it always returns nil
/usr/local/rvm/gems/ruby-2.7.0/gems/ruby-grafana-reporter-0.4.0/lib/grafana_reporter/abstract_query.rb:94: warning: deprecated Object#=~ is called on Integer; it always returns nil
Thank you very much for your time!!
Nice to see, that the image rendering is now working properly in your grafana instance.
To hunt down the issue, would you kindly provide additional information:
Thanks and best regards
Closing because of missing further information.
Hello, I am trying to export my first pdf report from a Grafana installation but unfortunately, I receive the below Fatal errors during the creation process.
FATAL -- : undefined method
[]' for nil:NilClass FATAL -- : undefined method
id' for nil:NilClass FATAL -- : uninitialized constant GrafanaReporter::PanelImageQuery::ImageCouldNotBeRenderedError FATAL -- : undefined method[]' for nil:NilClass FATAL -- : undefined method
id' for nil:NilClass FATAL -- : uninitialized constant GrafanaReporter::PanelImageQuery::ImageCouldNotBeRenderedErrorApplication call
Template file (if applicable)
Configuration file
grafana-reporter: report-class: GrafanaReporter::Asciidoctor::Report templates-folder: ./templates reports-folder: ./reports report-retention: 24 webservice-port: 8815