Closed adamron closed 1 year ago
Hi @adamron,
Thanks for reporting the issue. I am unable to reproduce the exception in below environment.
.NET SDK & service version: AWSSDK.Rekognition 3.7.201.3, AWSSDK.Core 3.7.204.4 .NET framework: .NET 6 (core) OS: Mac M1
Here is the code that I used for reproducing this issue.
using Amazon.Runtime;
using Amazon;
using Amazon.Rekognition;
using Amazon.Rekognition.Model;
namespace Issue_3073;
class Program
{
static async Task Main(string[] args)
{
var rekresult = ConfigureRekognition("accesskey", "secretkey", "us-east-1");
var response = await rekresult.CreateCollectionAsync(new CreateCollectionRequest
{
CollectionId = "firstphotos"
});
string collectionArn = response.CollectionArn;
int statusCode = response.StatusCode;
Console.WriteLine(collectionArn+ " "+statusCode);
}
public static IAmazonRekognition ConfigureRekognition(string accessKey, string secret, string region)
{
var credential = new BasicAWSCredentials(accessKey, secret);
var regionEndPoint = RegionEndpoint.GetBySystemName(region);
var rekclient = new AmazonRekognitionClient(credential, regionEndPoint);
return rekclient;
}
}
Execution result: aws:rekognition:us-east-1:account:collection/firstphotos 200
Can you please take a look at above code sample and suggest if i am missing anything here? Or kindly provide us with a minimal code that I can use to reproduce this issue.
Regards, Chaitanya
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.
Describe the bug
I am unable to use the AWS Rekognition v3 Client.
I have found similar issues with AWS service clients in the past, which makes me suspect that this is an upstream issue.
https://github.com/aws/aws-xray-sdk-dotnet/issues/267
Expected Behavior
Expectation was to instantiate the AWS rekognition client.
Current Behavior
Reproduction Steps
Failure occurs when instantiating the rekognition client
This code is almost exactly identical to the s3 client instantiation (AWSSDK.S3 version 3.7.9.3) which works as expected:
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.Rekognition 3.7.201.3
Targeted .NET Platform
.NET 6.0 (Core)
Operating System and version
Mac M1, macOS Sonoma