hassio-addons / addon-grafana

Grafana - Home Assistant Community Add-ons
https://addons.community
MIT License
228 stars 64 forks source link

A Status: 500. Message: InfluxDB returned error: error parsing query: found FROM, expected identifier, string, number, bool at line 1, char 9 #426

Open sanderlv opened 5 days ago

sanderlv commented 5 days ago

Problem/Motivation

Since today I discovered when adding a new panel I got this error.

Expected behavior

Adding a panel and selecting the entity

Actual behavior

browser hangs

Steps to reproduce

When I want to add a new “visualization”(pane) I suddenly get this error. Where to start investigating?

image

Duplicating a panel works well, but adding a new one throws the error.

I can’t click “+” after WHERE, then the browser locks.

I use POST: image

sanderlv commented 4 days ago

Copying an existing "panel" enables me to edit is and select entity (no errors). I have no clue at all... but there seems to be a difference in the "query inspector" for the faulty one: Object traceId:undefined request:Object url:"api/ds/query?ds_type=influxdb" method:"POST" data:Object queries:Array[1] from:undefined to:undefined hideFromInspector:false response:Object results:Object metadataQuery:Object

vs a good one: Object traceId:undefined request:Object url:"api/ds/query?ds_type=influxdb&requestId=Q110" method:"POST" data:Object queries:Array[1] from:"1715412085750" to:"1731313285750" hideFromInspector:false response:Object results:Object A:Object