You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The panic occurred on line 94, specifically when it tries to access Errors[0] without checking the length of the Errors slice
In our go.mod: github.com/SumoLogic-Labs/sumologic-go-sdk/service/cip v1.2.0
I tried querying for the first time and read the documentation in the Getting Started guide. I didn't realize that the region code was case sensitive, so I put in us1 instead of US1, which caused the panic.
runtime error: index out of range [0] with length 0
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x5e
runtime/panic.go:770 +0x132
github.com/SumoLogic-Labs/sumologic-go-sdk/service/cip.(*APIClient).RunMetricsQueries(0xc0007e56e0, {{0xc00030e050, 0x1, 0x1}, 0xc0010a6140})
github.com/SumoLogic-Labs/sumologic-go-sdk/service/[email protected]/api_metrics_query_RunMetricsQueries.go:94 +0xb0f
The panic went away once I put in US1 instead.
This was extremely hard to debug because the panic made me think the issue was not an environment variable. 😅
The text was updated successfully, but these errors were encountered:
sumologic-go-sdk/service/cip/api_metrics_query_RunMetricsQueries.go
Lines 87 to 94 in a9a5957
Errors[0]
without checking the length of theErrors
slicego.mod
:github.com/SumoLogic-Labs/sumologic-go-sdk/service/cip v1.2.0
I tried querying for the first time and read the documentation in the Getting Started guide. I didn't realize that the region code was case sensitive, so I put in
us1
instead ofUS1
, which caused the panic.The panic went away once I put in
US1
instead.This was extremely hard to debug because the panic made me think the issue was not an environment variable. 😅
The text was updated successfully, but these errors were encountered: