Invalid memory address or nil pointer dereference error

Keep getting invalid memory address or nil pointer dereference error when trying to create check via API v2.

The API endpoint : /api/v2/checks/
Method: POST

Able to generate query and works fine from the UI. Error is generated via API.

Thanks in advance!

Could you provide your full API request (leaving out tokens and secrets)? Which version of influxdb are you using?

Please crosscheck your API call with InfluxDB v2.0 API documentation

There should be a better error message so I’m curious.

I am using InfluxDB v2.4.0 and I still have the sam error.
I follow the API doc, I believe the doc is not the latest for CreateCheck
The API endpoint : /api/v2/checks/
Method: POST

The error
{‘code’: ‘internal error’, ‘message’: ‘a panic has occurred: /api/v2/checks: runtime error: invalid memory address or nil pointer dereference’}

TIA