terraform-provider-sysdig icon indicating copy to clipboard operation
terraform-provider-sysdig copied to clipboard

If authentication token for sysdig provider is expired, the error message is unclear

Open duncan485 opened this issue 7 months ago • 0 comments
trafficstars

When the authentication token for the provider is expired, it returns a vague error: Error: invalid character 'u' looking for beginning of value.

What would I expect? If the provider can't authenticate, I'd expect the provider to throw an authentication failed error.

What happened? When provided with expired/invalid credentials, the provider returns a vague error: Error: invalid character 'u' looking for beginning of value

How to reproduce

  • For example, create sysdig_secure_posture_zone resource with a valid authentication token in place
  • Invalidate the token
  • Run a plan

duncan485 avatar Mar 24 '25 13:03 duncan485