1 year ago

#383243

test-img

Andy

AWS SQS - boto3 HTTPClientError - tuple index out of range

Intermittently seeing this error when enqueuing SQS messages with boto. The same operation succeeds upon retry. This is with boto==1.21.28, botocore==1.24.28

Is it possible this could be a bug in botocore?

[ERROR] HTTPClientError: An HTTP Client raised an unhandled exception: tuple index out of range
Traceback (most recent call last):
  File "/opt/foo/bar/baz/queue.py", line 47, in enqueue_foo
    sqs.Queue(SOME_QUEUE).send_message(
  File "/opt/venv/lib/python3.9/site-packages/boto3/resources/factory.py", line 520, in do_action
    response = action(self, *args, **kwargs)
  <--snipped to placate stackoverflow formatter-->
  File "/opt/venv/lib/python3.9/site-packages/botocore/endpoint.py", line 317, in _send
    return self.http_session.send(request)
  File "/opt/venv/lib/python3.9/site-packages/botocore/httpsession.py", line 448, in send
    raise HTTPClientError(error=e)

boto3

botocore

0 Answers

Your Answer

Accepted video resources