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

Amazon.Runtime.AmazonClientException: No RegionEndpoint or ServiceURL configured on BLOB Storing Aws Provider #5506

Closed
enramgarcia opened this issue Sep 20, 2020 · 1 comment
Assignees
Milestone

Comments

@enramgarcia
Copy link

When using AccesssKeyId and SecretKeyId the blob storage throws a Amazon.Runtime.AmazonClientException: No RegionEndpoint or ServiceURL configured exception when trying to connect to AWS. The issue is caused by line 57 on DefaultAmazonS3ClientFactory.cs.

return new AmazonS3Client(configuration.AccessKeyId, configuration.SecretAccessKey, configuration.Region);

should be replaced with

return new AmazonS3Client(configuration.AccessKeyId, configuration.SecretAccessKey, region);

This way its sending the actual region instead of the string with the region's name. This causes an issue because if the 3rd param is a string, then the client will think its an awsSessionToken thus no region is been selected.

@realLiangshiwei
Copy link
Member

You are right, I will fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants