tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

AWS SQS issue #293

Open SanthoshKannanSP opened 1 year ago

SanthoshKannanSP commented 1 year ago

/home/santhosh/miniconda3/envs/localstack/lib/python3.10/site-packages/botocore/client.py:625: FutureWarning: The sqs client is currently using a deprecated endpoint: queue.amazonaws.com. In the next minor version this will be moved to sqs.us-east-1.amazonaws.com. See https://github.com/boto/botocore/issues/2705 for more details. warnings.warn( Traceback (most recent call last): File "/home/santhosh/tact/localstack-examples/sqs_crud.py", line 58, in startpy() File "/home/santhosh/tact/localstack-examples/sqs_crud.py", line 51, in startpy receive_message() File "/home/santhosh/tact/localstack-examples/sqs_crud.py", line 21, in receive_message response = sqs_client.receive_message( File "/home/santhosh/miniconda3/envs/localstack/lib/python3.10/site-packages/botocore/client.py", line 514, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/santhosh/miniconda3/envs/localstack/lib/python3.10/site-packages/botocore/client.py", line 938, in _make_api_call raise error_class(parsed_response, operation_name) botocore.errorfactory.QueueDoesNotExist: An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the ReceiveMessage operation: The specified queue does not exist for this wsdl version.

SanthoshKannanSP commented 1 year ago

Solution: aws --endpoint-url=http://localhost:4566 sqs get-queue-attributes --queue-url http://localhost:4566/000000000000/rjtest --attribute-names All

find region name and replace in code