Grafana HTTP GET request result not returned

I’m trying to adjust the Simple JSON plugin for Grafana in such a way that it will work with a specific REST API, that I want to use.

When it comes to the GET request I can see the proper response in the Firefox Developer console under Network (Status 200 and the response body contains the required data).

The plugin makes the HTTP request via backendSrv.datasourceRequest(options). This method however returns {"$$state":{"status":0}}. Can anyone explain me how that is possible? Why isn’t the proper response returned by this method?

I have previously asked this question on stackoverflow.


Searched for the response and found this.

Please let me know if this works and mark this as solution if it solves your problem.