When executing Git commands like git push, git pull, or git fetch without first performing an AWS SSO login, the following error occurs:
botocore.exceptions.TokenRetrievalError: Error when retrieving token from sso: Token has expired and refresh failed
This error should be caught and replaced with a more informative message that specifies the AWS SSO profile requiring login. This enhancement is particularly useful for environments with multiple AWS SSO profiles, helping users easily identify which profile needs to be logged in for the current AWS CodeCommit repository.
When executing Git commands like
git push
,git pull
, orgit fetch
without first performing an AWS SSO login, the following error occurs:This error should be caught and replaced with a more informative message that specifies the AWS SSO profile requiring login. This enhancement is particularly useful for environments with multiple AWS SSO profiles, helping users easily identify which profile needs to be logged in for the current AWS CodeCommit repository.