Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS (SignatureDoesNotMatch) when calling the ReceiveMessage operation #326

Open
Ripeey opened this issue Jan 14, 2024 · 1 comment
Open

Comments

@Ripeey
Copy link

Ripeey commented Jan 14, 2024

  • 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

@terricain
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants