terraform-provider-sysdig
terraform-provider-sysdig copied to clipboard
If authentication token for sysdig provider is expired, the error message is unclear
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_zoneresource with a valid authentication token in place - Invalidate the token
- Run a plan