Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Hippie Techie
    the debugging portion that helped me to fix this issue was the module window that is available only during debugging : " Debug > window > modules "
    more info here if you face a similar issue aws/aws-sdk-net#1409
    Ajay Singh
    I am trying to call the AWS API Gateway API secured with API Key. Things are working fine from PostMan but when calling from .Net Core using HttpClient every time I am getting 403 i.e Forbidden message. I using the following code
    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);
    Paul Mattingly
    Hello, I am using the AmazonDynamoDBClient and seeing a few different WebExceptions that I need to troubleshoot. They usually have one of the following messages, "A WebException with status ReceiveFailure was thrown", "A WebException with status RequestCancelled was thrown" or "A WebException with status KeepAliveFailure was thrown". How can I go about working out where these are coming from? Thanks
    Kim Zhu
    I got a question, anyone know how to create a sqs queue with the lambda trigger in .net core? I cannot find the option in sqsClient.CreateQueueAsync (see below)
    using (var sqsClient = new AmazonSQSClient(sqsConfig))
    await sqsClient.CreateQueueAsync(new CreateQueueRequest {
    QueueName = "myqueue",
    Attributes =
    { QueueAttributeName.MaximumMessageSize, "262144"},
    { QueueAttributeName.DelaySeconds, "0"},
    { QueueAttributeName.MessageRetentionPeriod, "691200" },
    { QueueAttributeName.ReceiveMessageWaitTimeSeconds, "10"},
    { QueueAttributeName.VisibilityTimeout, "300"}
    but I cannot find the option to set the Lambda trigger
    Danilo Nobre

    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.

    Carlos Fernandez
    @kimz-petsure wouldn't you need to first create the lambda, and assign it the "SQS source" ? I haven't done this through the SDK, but I would assume you first have to create the lambda, and assign it the SQS source event trigger
    @ajaysingh77 I think the 403 is because you need to supply some credentials to that request. Do you have an access key / token?
    Matthew Tovbin
    Howdy folks, I was wondering where are the model json files generated from? - https://github.com/aws/aws-sdk-net/tree/master/generator/ServiceModels
    Neil Gibbons
    Have an issue with TransferUtility.UploadAsync not appearing to complete - feels like the SDK is swallowing an exception as my service stills shows as running but the thread never returns to calling code so I see no further log messages.
    Carlos Fernandez
    @tovbinm I thought those were 'manually' / 'internal' to AWS and the service models are generated from those models
    @neilgibbons how big are the files you're uploading?
    Neil Gibbons
    < 50KBs
    size can vary but usually no higher than that
    Carlos Fernandez
    That's odd, even with larger files I've not had any issues. Are you breaking on all exceptions?
    Neil Gibbons
    I recently switched to synchronous calls and noticed the same thing - my code calls the S3 API, I see progress callbacks logging to 100% but the file doesnt appear in S3 and my API call never finishes
    So my code is just stuck waiting
    Carlos Fernandez
    Damn, that's really odd
    Neil Gibbons
    Ive turned on AWS logging too - but I see nothing logged by the API itself when this issue occurs
    Carlos Fernandez
    I assume you're doing something like this:
    using (var client = new AmazonS3Client(_credentials, BucketRegion))
    using (var util = new TransferUtility(client))
            await util.UploadAsync(stream: fileStream, bucketName: _bucketName, key: destinationFileName);
        catch (AmazonS3Exception e)
             Logger.Error(e, $"Error while uploading file {filePath} to S3");
    shit format
    Neil Gibbons
    im using a TransferUtilityUploadRequest and calling the synchronous Upload method on TransferUtility
    Carlos Fernandez
    Does the TUUploadRequest also take a fileStream? I haven't used that one
    Neil Gibbons
    Takes a string file path
    TransferUtilityUploadRequest fileTransferUtilityRequest = new TransferUtilityUploadRequest
                                BucketName = BucketName,
                                FilePath = item.FileNamePath,
                                StorageClass = S3StorageClass.StandardInfrequentAccess,
                                PartSize = 6291456, // 6 MB.
                                Key = BucketPath + item.Key,
                                ContentType = "text/csv",
                                CannedACL = S3CannedACL.Private
    Carlos Fernandez
    Are all those properties mandatory?
    I wonder if you're setting a part size to be too big. and it's just waiting? Is the file really 6mb?
    Neil Gibbons
    Ooooo - good shout
    It does work though - this issue seems to be intermittant

    Docs say

    Gets or sets the part size of the upload in bytes. The uploaded file will be divided into parts the size specified and uploaded to Amazon S3 individually.

    Carlos Fernandez
    Yes, this is because the TransferUtility class can do that. But you don't need to set the part size, because I believe it will do the "split" by itself if it detects a big file coming in
    Neil Gibbons
    I assumed it would fallback gracefully if file not bigger than 6MB
    Carlos Fernandez
    My guess is, they give you the option to set part size, if you want to do the partitioning yourself
    I wouldn't bother with it at first. Get the upload working
    And cross that bridge when you get to it :D
    Neil Gibbons
    Ill give it a go
    Carlos Fernandez
    Tamás Balogh
    Hello guys,
    We found an issue which is related to sqsclient it can cause http socket exceptions.
    please contact me in private bc from company side I cannot share this in public.
    Henrique Dezani
    Hi. I am using services.AddCognitoIdentity() in my ASP.net Core Application (2.2), but I am working with Web API, and the token result is given back with Cookie. How I get JWT instead of Cookie? The libraries are: Amazon.AspNetCore.Identity.Cognito and Amazon.Extensions.CognitoAuthentication. Thanks
    Ryan Stradling
    It does not seem like the latest version of the SDK is available in Nuget. I need something >= https://github.com/aws/aws-sdk-net/releases/tag/3.3.580.0 because I need the sts identity. How is this normally updated and published? In nuget https://www.nuget.org/packages/AWSSDK.Core/ I only see version 3.3.103
    Rayhaan Quazi
    Hi everyone, I had a quick question about .NET Core Identity Provider for Amazon Cognito found here: https://github.com/aws/aws-aspnet-cognito-identity-provider
    I added it to my .net core api and it's successfully secured my api. How do I access a user's cognito username though?
    Hi all, Does anyone have any working example of Aws Personalize with .Net Sdk?
    Raymond Sanchez
    @rayhaanq you can use this site to decode your jwt token https://jwt.io/. Another option is to use the GetUser api call https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUser.html