Skip to content

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

@duncan485

Description

@duncan485

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions