question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image renderer refers to localhost

See original GitHub issue

What 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:open
  • Created 3 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

3reactions
UlrichThiesscommented, Jun 11, 2021

The message net::ERR_CERT_COMMON_NAME_INVALID indicates 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 = true

2reactions
AlexHeylincommented, Jul 9, 2021

I also see this problem. Setting

[plugin.grafana-image-renderer]
rendering_ignore_https_errors = true

Does work around the issue, but the real fix needs to be stop using localhost and use the FQDN specified in Grafana config.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found