awslabs / amazon-sqs-java-extended-client-lib

An extension to the Amazon SQS client that enables sending and receiving messages up to 2GB via Amazon S3.
Apache License 2.0
211 stars 109 forks source link

AmazonSQSExtendedClient does not have an implementation #61

Closed mec2005 closed 3 years ago

mec2005 commented 3 years ago

Hi. First of all I want to thank you for this solution. I have an implementation that works fine, but when I updated AWSSDK.Core, AWSSDK.S3, AWSSDK.SimpleNotificationService and AWSSDK.SQS the client stopped working.

Now I have got the error.

System.TypeLoadException: 'Method 'get_Paginators' in type 'Amazon.SQS.ExtendedClient.AmazonSQSExtendedClient' from assembly 'Amazon.SQS.ExtendedClient, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.'
try            
{
    _queueUrl = config.Url;
    _s3Client = new AmazonS3Client(new BasicAWSCredentials(config.AccessKey, config.SecretKey), Amazon.RegionEndpoint.GetBySystemName(config.Region));
    _sqsClient = new AmazonSQSClient(config.AccessKey, config.SecretKey, Amazon.RegionEndpoint.GetBySystemName(config.Region));
    _extendedClient = new AmazonSQSExtendedClient(_sqsClient, new ExtendedClientConfiguration().WithLargePayloadSupportEnabled(_s3Client, config.BucketName));
    }
    catch (Exception ex)
    {
        _logger.LogError(ex, "Constructor: SqsService");
        throw;
    }
}

I'll thank you again if help me!

adam-aws commented 3 years ago

Hi @mec2005 , can you share the previous and new versions that you updated to and I'll be happy to take a look.

mec2005 commented 3 years ago

For sure! image

adam-aws commented 3 years ago

Hi @mec2005 , looks like you are using the .Net version https://github.com/raol/amazon-sqs-net-extended-client-lib which isn't maintained by us. I saw you opened an issue with them.

Will close this issue since this should be handled by the maintainers of .Net version

mec2005 commented 3 years ago

Thank you! I so sorry.