Jira plugin fails to unmarshal errors from Jira API #38231
Labels
access-requests
bug
teleport-plugin
Tickets related to Teleport Plugins https://github.com/gravitational/teleport-plugins
Expected behavior:
When the Jira API returns errors we should log them or return them to the user
Current behavior:
We get a log like this, which isn't helpful when trying to debug the issue:
here we configure the client to unmarshal errors into an
ErrorResult
, defined hereteleport/integrations/access/jira/types.go
Lines 23 to 26 in ddeec3d
ErrorResult.Errors
there has type[]string
, but according to the schema from Jira it will be a JSON object. We should either fix the type ofErrorResult.Errors
or just remove it and only useErrorResult.ErrorMessages
Bug details:
The text was updated successfully, but these errors were encountered: