Closed slimes28 closed 1 year ago
Hello, After installing the latest version of the plugin the plugin started to crash on query. Plugin version: 1.4 Grafana version: 9.3.1
`2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.488488322Z level=debug msg="Plugin restarted" 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.487676224Z level=debug msg="plugin address" address=/tmp/plugin4110788322 network=unix 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.487655902Z level=debug msg="using plugin" version=2 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.487187228Z level=debug msg="Serving plugin" plugins="[data diagnostics]" 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.469196051Z level=debug msg="waiting for RPC address" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.469139522Z level=debug msg="plugin started" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 pid=177 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.468196332Z level=debug msg="starting plugin" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 args=[/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64] 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.467940261Z level=debug msg="Restarting plugin" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.825025105Z level=debug msg="plugin process exited" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 pid=164 error="exit status 2" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.822173444Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:921 +0x28a" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.822155561Z level=debug msg="created by google.golang.org/grpc.(Server).serveStreams.func1" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.822089889Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:923 +0x98" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821987396Z level=debug msg=google.golang.org/grpc.(Server).serveStreams.func1.2() 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821979717Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:1608 +0xa1b" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821974158Z level=debug msg="google.golang.org/grpc.(Server).handleStream(0xc00025d180, {0x1297e00, 0xc000404180}, 0xc00037e000, 0x0)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82196847Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:1279 +0xccf" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821957994Z level=debug msg="google.golang.org/grpc.(Server).processUnaryRPC(0xc00025d180, {0x1297e00, 0xc000404180}, 0xc00037e000, 0xc000550990, 0x193e8f0, 0x0)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821951174Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/genproto/pluginv2/backend_grpc.pb.go:197 +0x138" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821945477Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2._Data_QueryData_Handler({0xf411e0?, 0xc0003061a0}, {0x12934c0, 0xc0000cd440}, 0xc00051c7e0, 0xc000550210)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821939748Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:34 +0xbf" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821933995Z level=debug msg="github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x12934c0, 0xc0000cd440}, {0x101a2c0, 0xc0003146e0}, 0xc000242ae0?, 0xf65d60?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821925784Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:25 +0x3a" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821914816Z level=debug msg="github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x12934c0?, 0xc0000cd440?}, {0x101a2c0?, 0xc0003146e0?})" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821907913Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-prometheus@v1.2.0/server_metrics.go:107 +0x87" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82190071Z level=debug msg="github.com/grpc-ecosystem/go-grpc-prometheus.(ServerMetrics).UnaryServerInterceptor.func1({0x12934c0, 0xc0000cd440}, {0x101a2c0, 0xc0003146e0}, 0x7f3dd2a44118?, 0xc00027e690)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82189452Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/genproto/pluginv2/backend_grpc.pb.go:195 +0x78" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821886982Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2._Data_QueryData_Handler.func1({0x12934c0, 0xc0000cd440}, {0x101a2c0?, 0xc0003146e0})" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821880026Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/backend/grpcplugin/grpc_data.go:47 +0x2b" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82185393Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/backend/grpcplugin.(dataGRPCServer).QueryData(0xc000261990?, {0x12934c0?, 0xc0000cd440?}, 0xc0000cd590?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821819446Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/backend/data_adapter.go:21 +0x4d" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821769016Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/backend.(dataSDKAdapter).QueryData(0xc000511df0, {0x12934c0, 0xc0000cd440}, 0x0?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821720975Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/snowflake.go:60 +0x385" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821694341Z level=debug msg="main.(SnowflakeDatasource).QueryData(0xc0003146e0?, {0x1032c00?, 0x0?}, 0xc000314780)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821654374Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/query.go:223 +0x4bd" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821583274Z level=debug msg="main.(SnowflakeDatasource).query(0x0?, {{0x19139a8, 0x1}, {0xc0003081e8, 0x5}, 0x9a7, 0x6fc23ac00, {{0x2634e240, 0xedb9329b9, 0x1958760}, ...}, ...}, ...)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821571414Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/query.go:101 +0x705" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821538776Z level=debug msg="main.(queryConfigStruct).fetchData(0xc0005cf478, 0x10b3d29?, {0xc00054c580?, 0xc0000b9980?}, {0x0?, 0x16?})" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821530699Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/query.go:161 +0xed5" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821524083Z level=debug msg="main.(*queryConfigStruct).transformQueryResult(0xc0005cf478, {0xc0004f2c60, 0xb, 0xc00033a300?}, 0xb8?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821510679Z level=debug msg="goroutine 84 [running]:" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82150152Z level=debug msg=
2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821453898Z level=debug msg="panic: interface conversion: interface {} is float64, not string"`
Hello, After installing the latest version of the plugin the plugin started to crash on query. Plugin version: 1.4 Grafana version: 9.3.1
`2023-03-04 01:34:54
logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.488488322Z level=debug msg="Plugin restarted" 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.487676224Z level=debug msg="plugin address" address=/tmp/plugin4110788322 network=unix 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.487655902Z level=debug msg="using plugin" version=2 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.487187228Z level=debug msg="Serving plugin" plugins="[data diagnostics]" 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.469196051Z level=debug msg="waiting for RPC address" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.469139522Z level=debug msg="plugin started" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 pid=177 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.468196332Z level=debug msg="starting plugin" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 args=[/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64] 2023-03-04 01:34:54 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:54.467940261Z level=debug msg="Restarting plugin" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.825025105Z level=debug msg="plugin process exited" path=/var/lib/grafana/plugins/snowflake-grafana-datasource/gpx_snowflake-datasource_linux_amd64 pid=164 error="exit status 2" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.822173444Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:921 +0x28a" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.822155561Z level=debug msg="created by google.golang.org/grpc.(Server).serveStreams.func1" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.822089889Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:923 +0x98" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821987396Z level=debug msg=google.golang.org/grpc.(Server).serveStreams.func1.2() 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821979717Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:1608 +0xa1b" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821974158Z level=debug msg="google.golang.org/grpc.(Server).handleStream(0xc00025d180, {0x1297e00, 0xc000404180}, 0xc00037e000, 0x0)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82196847Z level=debug msg="\t/home/runner/go/pkg/mod/google.golang.org/grpc@v1.41.0/server.go:1279 +0xccf" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821957994Z level=debug msg="google.golang.org/grpc.(Server).processUnaryRPC(0xc00025d180, {0x1297e00, 0xc000404180}, 0xc00037e000, 0xc000550990, 0x193e8f0, 0x0)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821951174Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/genproto/pluginv2/backend_grpc.pb.go:197 +0x138" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821945477Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2._Data_QueryData_Handler({0xf411e0?, 0xc0003061a0}, {0x12934c0, 0xc0000cd440}, 0xc00051c7e0, 0xc000550210)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821939748Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:34 +0xbf" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821933995Z level=debug msg="github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x12934c0, 0xc0000cd440}, {0x101a2c0, 0xc0003146e0}, 0xc000242ae0?, 0xf65d60?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821925784Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:25 +0x3a" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821914816Z level=debug msg="github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x12934c0?, 0xc0000cd440?}, {0x101a2c0?, 0xc0003146e0?})" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821907913Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-prometheus@v1.2.0/server_metrics.go:107 +0x87" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82190071Z level=debug msg="github.com/grpc-ecosystem/go-grpc-prometheus.(ServerMetrics).UnaryServerInterceptor.func1({0x12934c0, 0xc0000cd440}, {0x101a2c0, 0xc0003146e0}, 0x7f3dd2a44118?, 0xc00027e690)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82189452Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/genproto/pluginv2/backend_grpc.pb.go:195 +0x78" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821886982Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2._Data_QueryData_Handler.func1({0x12934c0, 0xc0000cd440}, {0x101a2c0?, 0xc0003146e0})" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821880026Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/backend/grpcplugin/grpc_data.go:47 +0x2b" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82185393Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/backend/grpcplugin.(dataGRPCServer).QueryData(0xc000261990?, {0x12934c0?, 0xc0000cd440?}, 0xc0000cd590?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821819446Z level=debug msg="\t/home/runner/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.149.1/backend/data_adapter.go:21 +0x4d" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821769016Z level=debug msg="github.com/grafana/grafana-plugin-sdk-go/backend.(dataSDKAdapter).QueryData(0xc000511df0, {0x12934c0, 0xc0000cd440}, 0x0?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821720975Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/snowflake.go:60 +0x385" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821694341Z level=debug msg="main.(SnowflakeDatasource).QueryData(0xc0003146e0?, {0x1032c00?, 0x0?}, 0xc000314780)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821654374Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/query.go:223 +0x4bd" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821583274Z level=debug msg="main.(SnowflakeDatasource).query(0x0?, {{0x19139a8, 0x1}, {0xc0003081e8, 0x5}, 0x9a7, 0x6fc23ac00, {{0x2634e240, 0xedb9329b9, 0x1958760}, ...}, ...}, ...)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821571414Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/query.go:101 +0x705" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821538776Z level=debug msg="main.(queryConfigStruct).fetchData(0xc0005cf478, 0x10b3d29?, {0xc00054c580?, 0xc0000b9980?}, {0x0?, 0x16?})" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821530699Z level=debug msg="\t/home/runner/work/snowflake-grafana-datasource/snowflake-grafana-datasource/pkg/query.go:161 +0xed5" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821524083Z level=debug msg="main.(*queryConfigStruct).transformQueryResult(0xc0005cf478, {0xc0004f2c60, 0xb, 0xc00033a300?}, 0xb8?)" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821510679Z level=debug msg="goroutine 84 [running]:" 2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.82150152Z level=debug msg=
2023-03-04 01:34:53 logger=plugin.michelin-snowflake-datasource t=2023-03-03T23:34:53.821453898Z level=debug msg="panic: interface conversion: interface {} is float64, not string"`