Canvas panel - button element API

Hi,

I am using the Canvas panel to use http or rest to remotely switch a digital relay device.

I have managed to succesfully do this using one of the standard elements and then thought I would try to rather use the experimental Element namely BUTTON. I am using a GET call without any authenticam just to retrurn the device status.

I first used POSTMAN and it returns the status data, no problems (CORS ETC).

I used one of the standard Elements and it too worked without any problem as with POSTMAN using the INFINITY Datasource

I then tried the Button element as shown below

and it too returned the status data without any problem as shown below.

However if I try and use the same URL in the Button element GET menu I get an error

This is the console output

So the issue is why is the same URL working in the Infinity datasource but the very same url in the button element menu gives an error?

Using Grafana 12.0.1

Any suggestions welcome.

Do you have local installation of Grafana? Is it configured to HTTP or HTTPS access?

Thank you for responding

I have a remote server installation which uses http.
I have a local IoT device which uses http

All the rest calls within the grafana query work fine as do those from postman using http within my PC’s CHROME browser. It is just the rest calls in the Canvass edit menu which does not work?

REMOTE *********************************************** LOCAL

SERVER (http) ------------------------------------------- remote device (http)
|---------------- PC running GRAFANA (http in browser)

Anything interesting showing in browser console or browser network tab? Or even grafana logs?