divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
66 stars 5 forks source link

undefined method `request_uri' for #<URI::Generic localhost:3000/api/frontend/settings> Did you mean? require #16

Closed Maelff closed 2 years ago

Maelff commented 2 years ago

Describe the issue Using the reporter on docker, I try to generate a pdf document with the grafana panels. I modified the demo_report to test it, and wanted to show a panel. The PDF succesfully generate, but instead of the panels, I get the error : " undefined method `request_uri' for #<URI::Generic localhost:3000/api/frontend/settings> Did you mean? require " I tried many things to fix it, such as changing the host in the configuration file, that ended only changing the adresse in the error message.

Application call

Template file (if applicable)

grafana_panel_image::2[dashboard="fH4MVUpnk"]

Configuration file

grafana:
 default:
    host: localhost:3000
    api_key: *****

grafana-reporter:
  check-for-updates: 1
  report-class: GrafanaReporter::Asciidoctor::Report
  templates-folder: ./templates
  reports-folder: ./reports
  report-retention: 24
  webservice-port: 8815

default-document-attributes:
  imagesdir: ./images

Environment (please complete the following information):

divinity666 commented 2 years ago

Thanks for the detailed error report and thanks for using the reporter.

Looks like an issue with your configuration file: Please configure your ˋhostˋ including preceding ˋhttp://ˋ or ˋhttps://ˋ depending on your configuration.

Please come back with the results.

Maelff commented 2 years ago

It has resolved my issue.

Thank you for your reactivity.