sasaki77 / archiverappliance-datasource

EPICS Archiver Appliance plugin for Grafana dashboard
https://sasaki77.github.io/archiverappliance-datasource
MIT License
14 stars 7 forks source link

BUG: fix invalid response handling #111

Closed sasaki77 closed 1 year ago

sasaki77 commented 1 year ago

Archiver Appliance may return a response that contains null or Infinity values as follows.

[ 
{ "meta": { "name": "PFRVA:NEG:2NDSYS:PLASM:RESIS" , "waveform": false , "EGU": "ohm" , "PREC": "0" },
"data": [ 
{ "millis": 1667786399401, "val": -Infinity },
{ "millis": 1667786401400, "val": null },
{ "millis": 1667786408400, "val": -Infinity },
{ "millis": 1667786409400, "val": null }] }
 ]

This PR fixes the plugin to return an error response in this case.