Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Hippie Techie
    @wrjanan
    I manually checked the directory where the plugin is loaded, and the AWSSDK.CognitoIdentity.dll file seems to be there.
    would this mean that it is not being loaded in to the program somehow?
    Carlos Fernandez
    @carlosrfernandez
    probably... unfortunately it's complicated to try and help you through chat... maybe check the stack trace and the inner exception message. also make sure that the "Path" where it's trying to load the file from is the same as the folder where the DLL is?
    also, is this a windows desktop app? a server app? are you debugging locally?
    make sure you can get it running locally
    Hippie Techie
    @wrjanan
    ok will try, thanks Carlos~ :)
    Hippie Techie
    @wrjanan
    fixed @carlosrfernandez !! you were right, i had to check the stack trace further in order to find out the path that the dll is being loaded from.
    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
    @ajaysingh77
    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
    @paulmattinglybv
    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
    @kimz-petsure
    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
    @danilonobren

    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".

    https://stackoverflow.com/questions/57628984/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
    @carlosrfernandez
    @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
    @tovbinm
    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
    @neilgibbons
    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
    @carlosrfernandez
    @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
    @neilgibbons
    < 50KBs
    size can vary but usually no higher than that
    Carlos Fernandez
    @carlosrfernandez
    That's odd, even with larger files I've not had any issues. Are you breaking on all exceptions?
    Neil Gibbons
    @neilgibbons
    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
    @carlosrfernandez
    Damn, that's really odd
    Neil Gibbons
    @neilgibbons
    Ive turned on AWS logging too - but I see nothing logged by the API itself when this issue occurs
    Carlos Fernandez
    @carlosrfernandez
    I assume you're doing something like this:
    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;
        }
    }
    whoops
    shit format
    Neil Gibbons
    @neilgibbons
    im using a TransferUtilityUploadRequest and calling the synchronous Upload method on TransferUtility
    Carlos Fernandez
    @carlosrfernandez
    Does the TUUploadRequest also take a fileStream? I haven't used that one
    Neil Gibbons
    @neilgibbons
    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
    @carlosrfernandez
    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
    @neilgibbons
    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
    @carlosrfernandez
    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
    @neilgibbons
    I assumed it would fallback gracefully if file not bigger than 6MB
    Carlos Fernandez
    @carlosrfernandez
    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
    @neilgibbons
    Ill give it a go
    Carlos Fernandez
    @carlosrfernandez
    :+1:
    Tamás Balogh
    @Lapeno94
    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.
    Regards,
    Tamas
    Henrique Dezani
    @henriquedezani
    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
    @rstradling
    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
    @rayhaanq
    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?