gravo icon indicating copy to clipboard operation
gravo copied to clipboard

Conversion of PanelID into int fails

Open SirkoVZ opened this issue 3 years ago • 4 comments

After creating a new dashboard and when choosing Gravo datasource an error occurs

json decode failed: json: cannot unmarshal number 23763571993 into Go struct field QueryRequest.panelId of type int
Object
status:400
statusText:"Bad Request"
data:Object
error:"Bad Request"
response:"json decode failed: json: cannot unmarshal number 23763571993 into Go struct field QueryRequest.panelId of type int
"
message:"json decode failed: json: cannot unmarshal number 23763571993 into Go struct field QueryRequest.panelId of type int
"
config:Object
url:"api/datasources/proxy/1/query"
data:Object
app:"dashboard"
requestId:"Q120"
timezone:"browser"
panelId:23763571993
dashboardId:1
range:Object
timeInfo:""
interval:"10s"
intervalMs:10000
targets:Array[1]
maxDataPoints:1950
scopedVars:Object
cacheTimeout:undefined
startTime:1612271048623
rangeRaw:Object
adhocFilters:Array[0]
method:"POST"
withCredentials:undefined
headers:Object
retry:0
hideFromInspector:false
message:"json decode failed: json: cannot unmarshal number 23763571993 into Go struct field QueryRequest.panelId of type int
"

It is possible to manually change the ID to e.g. 763571993. But, the ID should probably not be int...

SirkoVZ avatar Feb 02 '21 13:02 SirkoVZ