hello ~
have some issues trying to run aws-sdk-net on my .net v4.7 plugin.
I require to am trying to authenticate to S3 bucket via cognito identity, however there seems to be an exception thrown when I attempt to create a CognitoAWSCredential.
Exception thrown: 'System.TypeLoadException' in AWSSDK.CognitoIdentity.dll
HttpClient client = new HttpClient();
HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("POST"), _configuration["AppSettings:SendFeedBackTaskUrl"]);
request.Headers.Add("x-api-key", _configuration["AppSettings:SendFeedBackTaskUrlCode"]);
string data = $"{{\"completedTaskId\":\"{currentTaskId.ToString()}\",\"companyCode\":\"{companyCode}\"}}";
request.Content = new StringContent(data, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Hello guys, I'm having the exactly same issue that user "MidgetJake" asked on stackoverflow regarding "Amazon GameLift realtime client stops receiving messages after being accepted".
Can someone take a look on it? I would really appreciate any help.
using (var client = new AmazonS3Client(_credentials, BucketRegion))
using (var util = new TransferUtility(client))
{
try
{
await util.UploadAsync(stream: fileStream, bucketName: _bucketName, key: destinationFileName);
}
catch (AmazonS3Exception e)
{
Logger.Error(e, $"Error while uploading file {filePath} to S3");
throw;
}
}