gnocchixyz / grafana-gnocchi-datasource

Gnocchi datasource for Grafana 3 and 4
Apache License 2.0
17 stars 23 forks source link

Gnocchi error returning `results` object in detail "(detail: [object Object])" #73

Open ki4rbc opened 5 years ago

ki4rbc commented 5 years ago

While attempting to add this plugin I get the error: Gnocchi error: No response status code, is CORS correctly configured ? (detail: [object Object])

I find that this originates in dist/datasource.js:815 in _gnocchi_auth_request which reads: reason.message = "Gnocchi error: No response status code, is CORS correctly configured ? (detail: " + reason + ")"

Can this be changed to reason.status or something more useful for trouble shooting CORS problems?

ki4rbc commented 5 years ago

@sileht Is this a thing?

jannooo commented 4 years ago

Were you able to solve this issue? I am struggling with something similar at the moment.

In my case it seems Gnocchi isn't answering the CORS pre-flight correctly. I see the according request, but then Gnocchi just closes the connection.

ki4rbc commented 4 years ago

@elsobrino While I finally did get the CORS working, This issue was specifically to change reason.message to contain reason.status. I've seen no response from gnocchi