Image renderer refers to localhost
See original GitHub issueWhat happened:
Image-renderer failed to render an image
What you expected to happen:
Obviously, I wanted it to render an image
How to reproduce it (as minimally and precisely as possible):
The root of the issue is that it somehow refers to localhost instead of referring to the domain name configured.
And as it tries to use https, it obviously fails because the certificate wasn’t issued for localhost.
Anything else we need to know?:
The exact error is :
Rendering failed: Error: net::ERR_CERT_COMMON_NAME_INVALID at https://localhost:3000/d-solo/qVtkD6tMz/chaotic-bot?orgId=1&panelId=8&width=1000&height=500&tz=Europe%2FParis&render=1
Environment:
- Grafana Image Renderer version: 2.0.0
- Grafana version: 7.3.0
- Installed plugin or remote renderer service: Image renderer is the only additional plugin installed
- OS Grafana Image Renderer is installed on: Ubuntu 20.04.1
- User OS & Browser: Accessed Under Windows / Firefox
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7
Top Results From Across the Web
Image Renderer plugin uses Localhost rather than defined ...
Image Renderer 2.0.0. This might be user error, but my renderer plugin keeps trying to use https://localhost:3000 rather than mydomainnamehere:3000.
Read more >Images not rendering in localhost - asp.net mvc - Stack Overflow
I have images sitting within my project root at Data\Images\articles. I am trying to render the image using the code below in MVC:...
Read more >Using the image tag in React - Dave Ceddia
How do you refer to an image in React? The img tag is a bit weird. Learn how to include images in your...
Read more >Has link with a URL referencing LocalHost or 127.0.0.1
This means that the URL in question contains at least one outgoing anchor link ... LocalHost is the standard host name given to...
Read more >Basic Features: Image Optimization - Next.js
Now, you can define the src for your image (either local or remote). Local Images. To use a local image, import your .jpg ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The message
net::ERR_CERT_COMMON_NAME_INVALIDindicates that the certificate is not correct.This can be solved by the following entry in the INI file:
[plugin.grafana-image-renderer]rendering_ignore_https_errors = trueI also see this problem. Setting
Does work around the issue, but the real fix needs to be stop using
localhostand use the FQDN specified in Grafana config.