Skip to content

Queue Url differs from SQSClient endpoint message #517

Answered by jagiles-ren
jmckeeext asked this question in Help
Discussion options

You must be logged in to vote

@jmckeeext - I recently ran into this same issue. It actually isn't coming from sqs-consumer, but instead from the AWS SDK (see: https://github.com/aws/aws-sdk-js-v3/blob/0ade74b1adcf33f36078454ce3414408afe3813b/packages/middleware-sdk-sqs/src/queue-url.ts#L66)

What I did to resolve this error myself but still be able to use localstack was to do something similar to what the SDK is doing, and resolving the endpoint from the origin of the queue URL. That way, if the Queue URL is a localstack URL, it will resolve the endpoint for that client. Basically doing the same thing as useQueueUrlAsEndpoint is/was doing under the covers. I suspect AWS may be deprecating this functionality in the futu…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@jmckeeext
Comment options

Answer selected by jmckeeext
Comment options

You must be logged in to vote
3 replies
@jagiles-ren
Comment options

@nicholasgriffintn
Comment options

@jagiles-ren
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants