-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
area: asfaws:sqsAmazon Simple Queue ServiceAmazon Simple Queue Servicepriority: highstatus: backlogTriaged but not yet being worked onTriaged but not yet being worked onstatus: confirmedBug report was confirmedBug report was confirmedtype: bugBug reportBug report
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Creating an SQS queue appears to fail with AWS SDK for Python (Boto3) >= 1.26.0.
Using Boto3 1.26.0 (released Nov 1, 2022. Latest version is 1.26.127)
Installing Boto3 1.26.0.
pip install boto3==1.26.0
Code creating SQS queue:
from boto3 import Session
client = Session().resource("sqs", endpoint_url="http://localhost:4566")
client.create_queue(QueueName="test-queue")
LocalStack container log:
localstack | 2023-05-05T10:18:43.915 ERROR --- [ asgi_gw_0] l.aws.handlers.logging : exception during call chain: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).
localstack | 2023-05-05T10:18:43.917 INFO --- [ asgi_gw_0] localstack.request.http : POST / => 500
localstack | 2023-05-05T10:18:44.200 ERROR --- [ asgi_gw_0] l.aws.handlers.logging : exception during call chain: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).
localstack | 2023-05-05T10:18:44.204 INFO --- [ asgi_gw_0] localstack.request.http : POST / => 500
localstack | 2023-05-05T10:18:44.750 ERROR --- [ asgi_gw_0] l.aws.handlers.logging : exception during call chain: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).
localstack | 2023-05-05T10:18:44.755 INFO --- [ asgi_gw_0] localstack.request.http : POST / => 500
localstack | 2023-05-05T10:18:46.953 ERROR --- [ asgi_gw_0] l.aws.handlers.logging : exception during call chain: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).
localstack | 2023-05-05T10:18:46.958 INFO --- [ asgi_gw_0] localstack.request.http : POST / => 500
localstack | 2023-05-05T10:18:49.182 ERROR --- [ asgi_gw_0] l.aws.handlers.logging : exception during call chain: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).
localstack | 2023-05-05T10:18:49.184 INFO --- [ asgi_gw_0] localstack.request.http : POST / => 500
Exception from the code:
botocore.exceptions.ClientError: An error occurred (500) when calling the CreateQueue operation (reached max retries: 4): <?xml version='1.0' encoding='utf-8'?>
<ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Code>InternalError</Code><Message>exception while calling sqs with unknown operation: Operation detection failed. Missing Action in request for query-protocol service ServiceModel(sqs).</Message></Error><RequestId>VS4YRHM46ILFR98NPJEUGO6TY1SB7N18T44DNDTIHIN21Q5CFVVY</RequestId></ErrorResponse>
Expected Behavior
Using Boto3 1.25.5 (version directly prior to 1.26.0)
Installing Boto3 1.25.5
pip install boto3==1.25.5
Code creating SQS queue:
from boto3 import Session
client = Session().resource("sqs", endpoint_url="http://localhost:4566")
client.create_queue(QueueName="test-queue")
LocalStack container log:
localstack | 2023-05-05T10:29:30.062 INFO --- [ asgi_gw_0] localstack.request.aws : AWS sqs.CreateQueue => 200
Queue created successfully from code.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g., bin/localstack
command, arguments, or docker-compose.yml
)
Starting LocalStack in GitLab pipeline as a service with image: localstack/localstack:latest
.
Same results when starting LocalStack 2.0.1 with a docker-compose.yml
file locally.
Environment
- OS: macOS 13.3.1
- LocalStack: latest (2.0.2)
Anything else?
- This issue seems to get a similar error message. Unsure if cause is related.
- Issue could potentially be with Boto3's underlying
botocore
library.
manozaig, josephferrero, mscrivo, AValsamis, btrude and 14 more
Metadata
Metadata
Assignees
Labels
area: asfaws:sqsAmazon Simple Queue ServiceAmazon Simple Queue Servicepriority: highstatus: backlogTriaged but not yet being worked onTriaged but not yet being worked onstatus: confirmedBug report was confirmedBug report was confirmedtype: bugBug reportBug report