Closed LouaiMaayah1 closed 1 month ago
@dprokop looks to be related to https://github.com/grafana/scenes/pull/844 and the scopedVars sceneObject.value thing
@LouaiMaayah1 which data source are you using?
@torkelo I am using the mqtt data source. please keep in mind that i tried the exact same code on two different version, nothing was changed but the versions.
@torkelo, I dont know if this of use , but if i write the queries like this :
const queryRunner = new SceneQueryRunner({
datasource: {
type: 'grafana-mqtt-datasource',
uid: uid,
},
queries: [
{
refId: 'A',
topic: 'device/measurements/var1',
},
],
maxDataPoints: 30,
minInterval: '1s',
});
no errors appear, but the functionality of the custom var is lost.
I have also tested with influxDB datasource and still get the same error. So it does not seem to be related to the MQTT datasource.
@LouaiMaayah1 - what Grafana version is your app run with?
@dprokop Version 10.3.1
Ah, that's the issue then. Any chance you could try this with Grafana 11.1.2? The problem was fixed in that version (ref https://github.com/grafana/grafana/pull/90833)
We will soon provide a patched version that will remove this issue. Sorry about the trouble.
@dprokop , it worked with grafana version 11 , i will be moving to grafana 11 so this is not an issue for me anymore, i appreciate the qiuck response.
@LouaiMaayah1 - it will work with 11.1.2 onwards.
I have this code for a custom variable:
this code works fine on version: 3.6.0 but breaks on version: 5.6.2
Error