AWS-SQS client throws exception org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint.
Issue
- I am trying to connect via the camel component "camel-aws" to the Amazon SQS queue.I am using the following camel code:
<from uri="aws-sqs://?accessKey=&secretKey=&region=us-east-1&delay=&waitTimeSeconds=&maxMessagesPerPoll=5&attributeNames=All" />
- The access key and secret key are correct because I have tested their via a client java.But, when I deploy the component I get the following error
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: aws-sqs://test_queue?accessKey=XYZattributeNames=All&delay=1&maxMessagesPerPoll=5&secretKey=ABC&waitTimeSeconds=1 due to: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'POST
/
amz-sdk-invocation-id:1234Test
amz-sdk-retry:3/1200/
host:LMN.com
user-agent:TEST
x-amz-date:20160615T180428Z
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: aws-sqs://test_queue?accessKey=XYZattributeNames=All&delay=1&maxMessagesPerPoll=5&secretKey=ABC&waitTimeSeconds=1 due to: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'POST
/
amz-sdk-invocation-id:6789Test
amz-sdk-retry:3/1200/
host:Test.com
user-agent:Test
x-amz-date:20160615T180428Z
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.