influxdb-client-go icon indicating copy to clipboard operation
influxdb-client-go copied to clipboard

APIClient().GetChecks return null checks

Open drohlicek opened this issue 2 years ago • 0 comments

Specifications

  • Client Version: v2.12.0
  • InfluxDB Version: 2.4.0
  • Platform: macOS

Steps to reproduce

var Params = domain.GetChecksParams{OrgID: orgID}
influxClient := influxdb2.NewClientWithOptions(url, token, influxdb2.DefaultOptions().SetUseGZip(true).SetLogLevel(2).SetApplicationName("Testing"))
check, err := influxClient.APIClient().GetChecks(context.Background(), &Params)
if err != nil {
	log.Panic("Error GetChecks")
}
fmt.Printf("%v\n", check.Checks)

code return
&[{<nil>} {<nil>}]

Expected behavior

When I tested with Postman, server reply json response with 2 checks

Actual behavior

code return
&[{<nil>} {<nil>}]

Additional info

No response

drohlicek avatar Jan 19 '23 14:01 drohlicek