Hi nickH. Thanks to your help, I managed somehow to get the example code given by you in the ctrlX Virtual. After modding the code (token, org and bucket) I can see the value 40.2 in the Data Explorer of influxdb, as well as the _measurement and _field properties (see attachment 2023-05-26_11h28_04.png). BUT: The code in the following line produced an error: fmt.Printf("row: %s\n", result.Record().String()) I modded the line in order to see the reason and I could chase that result.Record() seemed to return nil. Here is my modded line: ... func PrintlnEx(strText string) { tm := time.Now() fmt.Printf(fmt.Sprintf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d.%.3d: %s\r\n", tm.Year(), tm.Month(), tm.Day(), tm.Hour(), tm.Minute(), tm.Second(), tm.Nanosecond()/1000000, strText)) } ... // Get parser flux query result PrintlnEx(" Querying...") result, err := queryAPI.Query(context.Background(), `from(bucket:"bucketHdWin")|> range(start: -1h) |> filter(fn: (r) => r._measurement == "metric")`) PrintlnEx(" Querying accomplished.") if err == nil { if result.Record() != nil { PrintlnEx(fmt.Sprintf( " row: %s", result.Record().String() ) ) } else { PrintlnEx(" ERROR: result.Record() returned nil!") // <-- The runtime landed here. } } else { PrintlnEx(fmt.Sprintf(" ERROR: %s", err.Error())) } // Ensures background processes finishes PrintlnEx(" Closing DB...") InfluxDBclient.Close() PrintlnEx(" Closing DB accomplished.") And I could see in the trace output that the result.Record() obviously returned nil (see attachment 2023-05-26_11h34_01.png). Any hints what could be wrong? Thanks in advance.
... View more