Open filiplindqvist-tv4 opened 6 months ago
Try to convert-go a JSON I get this error.
➜ grabana_0.22.1_darwin_arm64 ./grabana convert-go -i Profile.json 2024-03-18T10:49:31+01:00 WARN golang/variable.go:39 unhandled variable type found: skipped {"type": "custom", "name": "env"} 2024-03-18T10:49:31+01:00 WARN golang/variable.go:39 unhandled variable type found: skipped {"type": "custom", "name": "platform"} panic: interface conversion: interface {} is nil, not string goroutine 1 [running]: github.com/K-Phoen/grabana/encoder/golang.(*Encoder).encodeQueryVar(_, {{0x1400021b1b0, 0xd}, {0x1400021b268, 0x5}, 0x0, 0x0, 0x1400021e7e0, {0x0, 0x1400021b260}, ...}) /home/runner/work/grabana/grabana/encoder/golang/variable.go:115 +0x50c8 github.com/K-Phoen/grabana/encoder/golang.(*Encoder).encodeVariable(_, {{0x1400021b1b0, 0xd}, {0x1400021b268, 0x5}, 0x0, 0x0, 0x1400021e7e0, {0x0, 0x1400021b260}, ...}) /home/runner/work/grabana/grabana/encoder/golang/variable.go:31 +0x74 github.com/K-Phoen/grabana/encoder/golang.(*Encoder).encodeVariables(...) /home/runner/work/grabana/grabana/encoder/golang/variable.go:13 github.com/K-Phoen/grabana/encoder/golang.(*Encoder).EncodeDashboard(_, {0x59, {0x140000b84e0, 0x24}, {0x0, 0x0}, {0x1400021b380, 0xb}, {0x0, 0x0}, ...}) /home/runner/work/grabana/grabana/encoder/golang/encoder.go:31 +0x310 github.com/K-Phoen/grabana/encoder.ToGolang(_, {0x59, {0x140000b84e0, 0x24}, {0x0, 0x0}, {0x1400021b380, 0xb}, {0x0, 0x0}, ...}) /home/runner/work/grabana/grabana/encoder/golang.go:12 +0x58 github.com/K-Phoen/grabana/cmd/cli/cmd.convertGo(0x0?, {{0x16bae3438?, 0x0?}}) /home/runner/work/grabana/grabana/cmd/cli/cmd/convertGo.go:54 +0x26c github.com/K-Phoen/grabana/cmd/cli/cmd.ConvertGo.func1(0x14000126400?, {0x1047ac436?, 0x4?, 0x1047ac43a?}) /home/runner/work/grabana/grabana/cmd/cli/cmd/convertGo.go:26 +0x2c github.com/spf13/cobra.(*Command).execute(0x140000a5200, {0x140000e0460, 0x2, 0x2}) /home/runner/work/grabana/grabana/vendor/github.com/spf13/cobra/command.go:983 +0x840 github.com/spf13/cobra.(*Command).ExecuteC(0x140000a4300) /home/runner/work/grabana/grabana/vendor/github.com/spf13/cobra/command.go:1115 +0x344 github.com/spf13/cobra.(*Command).Execute(...) /home/runner/work/grabana/grabana/vendor/github.com/spf13/cobra/command.go:1039 main.main() /home/runner/work/grabana/grabana/cmd/cli/main.go:32 +0x218
Would it be possible to add more diagnostic info to find the error?
Grafana v10.3.3 (252761264e)
Using export JSON and the grabana convert-go command.
grabana convert-go
Gist: https://gist.github.com/filiplindqvist-tv4/b18c7fa13c8c8c7a18ca24bf191587f0
Try to convert-go a JSON I get this error.
Would it be possible to add more diagnostic info to find the error?
Grafana v10.3.3 (252761264e)
Using export JSON and the
grabana convert-go
command.Gist: https://gist.github.com/filiplindqvist-tv4/b18c7fa13c8c8c7a18ca24bf191587f0