quarkusio / quarkus-quickstarts

Quarkus quickstart code
https://quarkus.io
Apache License 2.0
1.96k stars 1.47k forks source link

AWS.SimpleQueueService.NonExistentQueue; see the SQS docs [amazon-sqs-quickstart] #978

Open jorgetovar opened 3 years ago

jorgetovar commented 3 years ago

I'm trying to run the Amazon SQS tutorial but I always get the same error.

image

I follow all the basic steps of this tutorial amazonsqs-guide

environment variable set up

QUEUE_URL=aws sqs create-queue --queue-name=ColliderQueue --profile localstack --endpoint-url=http://localhost:8010

image

I also put it in the application.properties but I got the same error

queue.url=http://localhost:8010/queue/ColliderQueue

marcinczeczko commented 2 years ago

@jorgetovar it is because the QUEUE_URL variable is JSON, and it should be a plain text URL to the queue. Looks like your aws cli profile has setup default output format to json. You can fix it in the ~/.aws/config file by setting output=text for `localstack profile - see details in AWS CLI docs: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html

scrocquesel commented 9 months ago

@gsmet could be closed