awspring / spring-cloud-aws

The New Home for Spring Cloud AWS
http://awspring.io
Apache License 2.0
892 stars 303 forks source link

Caused by: java.util.concurrent.CompletionException: io.awspring.cloud.sqs.QueueAttributesResolvingException: Error resolving attributes for queue <queue_name>.fifo with strategy CREATE and queueAttributesNames [] #1283

Open ohadab opened 17 hours ago

ohadab commented 17 hours ago

Type: Bug

Component: SQS

Describe the bug using package io.awspring.cloud:spring-cloud-aws-sqs:3.2.1 and using @SqsListener(value = "queue-messages.fifo")

i'm getting exception: Caused by: java.util.concurrent.CompletionException: io.awspring.cloud.sqs.QueueAttributesResolvingException: Error resolving attributes for queue queue-messages.fifo with strategy CREATE and queueAttributesNames [] ..... at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194) at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncApiCallMetricCollectionStage.lambda$execute$0(AsyncApiCallMetricCollectionStage.java:56) at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841) at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194) at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncApiCallTimeoutTrackingStage.lambda$execute$2(AsyncApiCallTimeoutTrackingStage.java:67) ..... Caused by: software.amazon.awssdk.services.sqs.model.SqsException: The action CreateQueue is not valid for this endpoint. (Service: Sqs, Status Code: 400, Request ID: ) Sample @SqsListener(queueNames = {"queue-messages.fifo"}) public void handleMessage(QueueMessageEvent event) {

maciejwalkowiak commented 16 hours ago

Error messages like that - either are self explanatory - or are related with your infrastructure/IAM permissions. If you believe this is in any way caused by framework, please provide a minimum sample that reproduces this issue.