Skip to content

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

@enramgarcia

Description

@enramgarcia

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions