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
I have referred #1926, #1793 and #2118 before opening this issue.
I am getting the error for ecr:
botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DescribeRepositories operation: The security token included in the request is invalid.
and, I am also getting:
/home/x/proj/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning)Performing system checks...
I am getting this error only when I add moto to requirements.txt
If I run pip install moto after running pip install -r requirements.txt, I am not getting both of the errors.
boto3==1.9.88
botocore==1.12.0
moto==1.3.8
It is accessing aws apis are when I disconnected, I got this:
Exception Value: Could not connect to the endpoint URL: "https://ecr.us-east-1.amazonaws.com/"
Code:
@if_non_prod_aws_mocker(mock_ecr)@if_non_prod_aws_mocker(mock_sts)defget_aws_credentials_for_submission(challenge, participant_team):
repository, created=get_or_create_ecr_repository(
ecr_repository_name, aws_keys
)
# getting error on line above#other codes
get_or_create_ecr_repository():
defget_or_create_ecr_repository(name, aws_keys):
repository, created=None, Falseclient=get_boto3_client("ecr", aws_keys)
try:
response=client.describe_repositories(
registryId=aws_keys.get("AWS_ACCOUNT_ID"), repositoryNames=[name] # Error is pointing at this line
)
repository=response["repositories"][0]
exceptClientErrorase:
ife.response["Error"]["Code"] =="RepositoryNotFoundException"or\
e.response["Error"]["Code"] =="400":
response=client.create_repository(repositoryName=name)
repository=response["repository"]
created=Trueelse:
logger.exception(e)
return (repository, created)
I have referred #1926, #1793 and #2118 before opening this issue.
I am getting the error for ecr:
botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DescribeRepositories operation: The security token included in the request is invalid.
and, I am also getting:
I am getting this error only when I add moto to requirements.txt
If I run
pip install moto
after runningpip install -r requirements.txt
, I am not getting both of the errors.boto3==1.9.88
botocore==1.12.0
moto==1.3.8
It is accessing aws apis are when I disconnected, I got this:
Exception Value: Could not connect to the endpoint URL: "https://ecr.us-east-1.amazonaws.com/"
Code:
get_or_create_ecr_repository()
:@if_non_prod_aws_mocker
:The text was updated successfully, but these errors were encountered: