Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ecr-public describe_repositories error #4383

Closed
1 task
cugblack opened this issue Jan 6, 2025 · 2 comments
Closed
1 task

ecr-public describe_repositories error #4383

cugblack opened this issue Jan 6, 2025 · 2 comments
Assignees
Labels
bug This issue is a confirmed bug. ecr p2 This is a standard priority issue response-requested Waiting on additional information or feedback.

Comments

@cugblack
Copy link

cugblack commented Jan 6, 2025

Describe the bug

I just try to get some public ecr repo follow this doc: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecr-public/client/describe_repositories.html

It return error:
botocore.exceptions.SSLError: SSL validation failed for https://api.ecr-public.ap-northeast-1.amazonaws.com/ EOF occurred in violation of protocol (_ssl.c:1129)

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

return repositories info

Current Behavior

It return error:
botocore.exceptions.SSLError: SSL validation failed for https://api.ecr-public.ap-northeast-1.amazonaws.com/ EOF occurred in violation of protocol (_ssl.c:1129)

Reproduction Steps

client = boto3.client(
"ecr-public",
# region_name="ap-northeast-1",
aws_access_key_id="",
aws_secret_access_key=""
)

response = client.describe_repositories(
registryId="neuron",
repositoryNames=["neuron-node-recovery"]
)
print(response)

Possible Solution

Maybe this url : https://api.ecr-public.ap-northeast-1.amazonaws.com is not worked well.

Additional Information/Context

No response

SDK version used

1.35.92

Environment details (OS name and version, etc.)

mac/ubuntu

@cugblack cugblack added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Jan 6, 2025
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Jan 7, 2025
@RyanFitzSimmonsAK RyanFitzSimmonsAK added investigating This issue is being investigated and/or work is in progress to resolve the issue. ecr p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jan 7, 2025
@RyanFitzSimmonsAK
Copy link
Contributor

RyanFitzSimmonsAK commented Jan 7, 2025

Hey @cugblack, thanks for reaching out. This operation actually only works in the us-east-1 region. This should be appearing in the error message though, and you're getting a different error than what's expected.

botocore.errorfactory.UnsupportedCommandException: An error occurred (UnsupportedCommandException) when calling the DescribeRepositories operation: DescribeRepositories command is only supported in us-east-1.

Could you try this command in us-east-1 and let me know what happens? Also, are you using a proxy? Thanks!

@RyanFitzSimmonsAK RyanFitzSimmonsAK added response-requested Waiting on additional information or feedback. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Jan 7, 2025
@cugblack
Copy link
Author

cugblack commented Jan 8, 2025

It's useful to set region_name="us-east-1".

@cugblack cugblack closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. ecr p2 This is a standard priority issue response-requested Waiting on additional information or feedback.
Projects
None yet
Development

No branches or pull requests

2 participants