cloudspout / cloudspout-button-panel

Grafana panel to integrate with any kind of HTTP/REST API
MIT License
50 stars 35 forks source link

Failed to fetch network ressource - grafana 8.5.0 & button panel v 7.0.23 #74

Open embedded-iot4me opened 2 years ago

embedded-iot4me commented 2 years ago

I've tried to implement a simple button with a GET request to a http-endpoint in NODERD (local network) and I alway get an error message fron the button panel (Failed to fetch network ressource), that the network ressource cannot be fetched. But this is wrong - in NODERED the request will received correctly. The http endpoint in NODERED simply reply a "http-200" (nothing else). Grafana runs in a container. A fundamental network problem can be excluded, due to the fact, that my other data sources cann be reached without any problems (e.g. a INFLUX DB in an neighbor container and plugin sources in internet)

gilles380 commented 2 years ago

Had same issue but investigating with web-inspector, Plugin is running fine problem (as far as i am concerned) is on the REST server and Cross Origin Resource Sharing easy to test using uvicorn and fastAPI did not suceeded using uvicorn and Falcon : could not set Access-Control-Allow-Methods using CORSMiddleware