You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pull-request-codecommit tool is in essence a wrapper around git and the aws commands. It could happen that those tools raise errors like for example:
An error occurred (ExpiredTokenException) when calling the ListPullRequests operation: The security token included in the request is expired
Or:
An error occurred (AccessDenied) when calling the XXX operation: User: XXX is not authorized to perform: XXX
What were you trying to accomplish?
When you interact with the the AWS CLI it could happen that the token is expired. This can happen when you copy STS tokens in the config file or you use STS tokens as an export.
Expected Behavior
Graceful error message
Current Behavior
Throws a stack trace
Possible Solution
Add some logic that checks the response and if it succeeded yes/no
Steps to Reproduce (for bugs)
Get outdated STS tokens or use IAM user without the correct IAM policies
The
pull-request-codecommit
tool is in essence a wrapper aroundgit
and theaws
commands. It could happen that those tools raise errors like for example:Or:
What were you trying to accomplish?
When you interact with the the AWS CLI it could happen that the token is expired. This can happen when you copy STS tokens in the config file or you use STS tokens as an export.
Expected Behavior
Graceful error message
Current Behavior
Throws a stack trace
Possible Solution
Add some logic that checks the response and if it succeeded yes/no
Steps to Reproduce (for bugs)
Environment
The text was updated successfully, but these errors were encountered: