aioboto3 icon indicating copy to clipboard operation
aioboto3 copied to clipboard

SQS (SignatureDoesNotMatch) when calling the ReceiveMessage operation

Open Ripeey opened this issue 1 year ago • 1 comments

  • Async AWS SDK for Python version: aioboto3-12.1.0 aiobotocore-2.8.0
  • Python version: 3.11
  • Operating System: Debian GNU/Linux 11 (bullseye)

Description

Traceback (most recent call last):
  File "poller.py", line 306, in <module>
  File "asyncio/base_events.py", line 647, in run_until_complete
  File "poller.py", line 299, in main
  File "poller.py", line 237, in consumer
  File "aiobotocore/client.py", line 386, in _make_api_call
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the ReceiveMessage operation: Signature expired: 20240114T080405Z is now earlier than 20240114T080405Z (20240114T081905Z - 15 min.)

For some reason after exact 15 minutes starting my sqs poller am getting this issue. At first i thought my instances were out of sync (time) but it wasnt. Not sure when but my autoscalling instances were getting replaced again and again recently because of this.

So I ran my poller in my local (ParrotOS 6.0) and I got the exact same error and again exactly after 15 minutes. image

Ripeey avatar Jan 14 '24 09:01 Ripeey

I'll need a simple example to reproduce this. From a guess, i'd say you were either blocking the event loop for long enough that weird things like this occurs, or perhaps some form of event loop exhaustion where messages have been received but not deserialised by aiobotocore quick enough.

terricain avatar Jan 16 '24 02:01 terricain