# Image Renderer plugin uses Localhost rather than defined domain

**URL:** <https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721>\
**Category:** Grafana\
**Created:** [May 21, 2020, 7:34pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721 "2020-05-21T19:34:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![john159753](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/john159753/32/11019_2.png) [@john159753](https://community.grafana.com/u/john159753)\
**Post date:** [May 21, 2020, 7:34pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/1 "2020-05-21T19:34:40Z")

</div>

**Grafana 7.0 on Windows**  
**Image Renderer 2.0.0**

This might be user error, but my renderer plugin keeps trying to use [https://community.grafana.com](https://community.grafana.com) rather than mydomainnamehere:3000

This results in a certificate name mismatch. I am pretty sure my config files are correct, as the “Share Panel” function in grafana shows the correct domain name.

Here are the logs entries i have (I had to pull the scheme from the links because discourse wont let me create a post with more than two links)

t=2020-05-21T14:04:27-0500 lvl=info msg=Rendering logger=rendering renderer=plugin path=“d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago”  
t=2020-05-21T14:04:27-0500 lvl=dbug msg=“Calling renderer plugin” logger=rendering renderer=plugin req="url:“community.grafana.com/d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago&render=1” width:1000 height:500 deviceScaleFactor:1 filePath:“C:\\Program Files\\GrafanaLabs\\grafana\\data\\png\\Ay6FLmnoZZ8UhTL9uFhO.png” renderKey:“6y3SJYFNVsobIh7dV7f5YqU4QbJ7YFEg” domain:“localhost” timeout:60 timezone:“America/Chicago” headers:\<key:“Accept-Language” value:\<values:“en-US,en;q=0.9” \> \> "  
t=2020-05-21T14:04:28-0500 lvl=eror msg=“Browser request failed” logger=plugins.backend pluginId=grafana-image-renderer url=“community.grafana.com/d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago&render=1” method=GET failure=net::ERR\_CERT\_COMMON\_NAME\_INVALID  
t=2020-05-21T14:04:28-0500 lvl=eror msg=“Render request failed” logger=plugins.backend pluginId=grafana-image-renderer url=“community.grafana.com/d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago&render=1” error=“Error: net::ERR\_CERT\_COMMON\_NAME\_INVALID at [https://community.grafana.com/d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago&render=1](https://community.grafana.com/d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago&render=1)”  
t=2020-05-21T14:04:28-0500 lvl=eror msg=“Rendering failed.” logger=context userId=3 orgId=1 uname=JohnDaley error=“Rendering failed: Error: net::ERR\_CERT\_COMMON\_NAME\_INVALID at community.grafana.com/d-solo/2s5AeqgMz/adfs-dashboard?orgId=1&from=1590065403745&to=1590087003745&panelId=4&width=1000&height=500&tz=America%2FChicago&render=1”  
t=2020-05-21T14:04:28-0500 lvl=eror msg=“Request Completed” logger=context userId=3 orgId=1 uname=JohnDaley method=GET path=/render/d-solo/2s5AeqgMz/adfs-dashboard status=500 remote\_addr=10.1.56.66 time\_ms=450 size=1723 referer=“winmgmt:3000/d/2s5AeqgMz/adfs-dashboard?orgId=1”

---

<div class="post-metadata">

**Author:** ![andrewrichards](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/andrewrichards/32/11055_2.png) [@andrewrichards](https://community.grafana.com/u/andrewrichards)\
**Post date:** [May 22, 2020, 6:50pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/2 "2020-05-22T18:50:54Z")

</div>

I was having the same problem. Try setting the following in /etc/grafana/grafana.ini:

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

```

That worked for my setup using Grafana 7.0 and Image Renderer 2.0.

---

<div class="post-metadata">

**Author:** ![john159753](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/john159753/32/11019_2.png) [@john159753](https://community.grafana.com/u/john159753)\
**Post date:** [May 23, 2020, 4:25pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/3 "2020-05-23T16:25:32Z")

</div>

This helps! Thank you!

Its nice to know i’m not the only one seeing this. Ideally - and im sure you’d agree - the image renderer plugin didnt use localhost, but this is a good workaround.

---

<div class="post-metadata">

**Author:** ![andrewrichards](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/andrewrichards/32/11055_2.png) [@andrewrichards](https://community.grafana.com/u/andrewrichards)\
**Post date:** [May 23, 2020, 7:18pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/4 "2020-05-23T19:18:40Z")

</div>

I nearly submitted a bug report insisting this is a kludge, but I backed off. It is all comms local to the host, so I’m not too bothered by it. If you set up a stand-alone render node it will be able to be configured for proper HTTPS.

---

<div class="post-metadata">

**Author:** ![mdillier](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@mdillier](https://community.grafana.com/u/mdillier)\
**Post date:** [August 27, 2020, 3:23pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/5 "2020-08-27T15:23:08Z")

</div>

Hi, is there already a solution for the localhost problem without the workaround to ignore https errors?

---

<div class="post-metadata">

**Author:** ![tiagofonseca1109](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@tiagofonseca1109](https://community.grafana.com/u/tiagofonseca1109)\
**Post date:** [May 6, 2021, 2:50pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/6 "2021-05-06T14:50:46Z")

</div>

Hi

I´m having a similar problem using the [JSON plugin for Grafana | Grafana Labs](https://grafana.com/grafana/plugins/simpod-json-datasource/). When I try to connect to my backend API in the localhost, I get the error “Failed to fetch:net::ERR\_CERT\_AUTHORITY\_INVALID.”

I´ve tried to edit the C:\Program Files\GrafanaLabs\grafana\conf\defaults.ini with the following lines and then I restarted the server but it does not work.

[plugin.simpod-json-datasource]  
rendering\_ignore\_https\_errors = true

I really appreciate any help you can provide.

---

<div class="post-metadata">

**Author:** ![andrewrichards](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/andrewrichards/32/11055_2.png) [@andrewrichards](https://community.grafana.com/u/andrewrichards)\
**Post date:** [May 9, 2021, 5:18pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/7 "2021-05-09T17:18:57Z")

</div>

The `rendering_ignore_https_errors` config parameter is specific to the grafana-image-renderer plugin. There would need to be some similar parameter available to call for the simpod-json-datasource plugin to be able to define it in defaults.ini. My cursory glance at the [GitHub repo for simpod-json-datasource](https://github.com/simPod/GrafanaJsonDatasource) did not reveal any similar parameter options.

---

<div class="post-metadata">

**Author:** ![danielt290947](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@danielt290947](https://community.grafana.com/u/danielt290947)\
**Post date:** [May 18, 2021, 2:52pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/8 "2021-05-18T14:52:01Z")

</div>

_beware of "rendering\_ignore\_https\_errors = " being set several times_

Had "rendering\_ignore\_https\_errors = " empty in my .ini template, therefore when I inserted it with true above, it was was unset after being set. Can be considered a stupid error, but for some this might be a useful hint.

---

<div class="post-metadata">

**Author:** ![pedro13](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pedro13](https://community.grafana.com/u/pedro13)\
**Post date:** [May 26, 2021, 3:07pm UTC](https://community.grafana.com/t/image-renderer-plugin-uses-localhost-rather-than-defined-domain/30721/9 "2021-05-26T15:07:13Z")

</div>

Thank you for sharing the solution!
