boto3 icon indicating copy to clipboard operation
boto3 copied to clipboard

Boto3-1.2.6 has an issue with cloudsearch and cloudsearchdomain

Open K-Meow opened this issue 10 years ago • 6 comments

When calling

boto3.client("cloudsearchdomain", endpoint_url = "http://xxx.xxx.xxx")

had following error with Boto3-1.2.6 and botocore-1.4.0

Traceback (most recent call last):
  File "app.py", line 81, in dataCS
    size = size)
  File "/usr/local/lib/python3.4/site-packages/botocore/client.py", line 228, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/local/lib/python3.4/site-packages/botocore/client.py", line 486, in _make_api_call
    raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the Search
operation: Credential should be scoped to correct service: 'cloudsearch'. 

Uninstalled boto3 and reinstalled with previous version Boto3-1.2.5 and botocore-1.3.30, everything is perfect with older version.

K-Meow avatar Mar 04 '16 07:03 K-Meow

Confirmed, looks like a regression from https://github.com/boto/botocore/pull/769. We'll get this fixed.

jamesls avatar Mar 04 '16 17:03 jamesls

guys when is this fix going to be in tokyo lambda, its failing today.

marcuslow avatar Mar 11 '16 04:03 marcuslow

This has been released in botocore. You just need to update the version of botocore to the latest version to pick up this fix.

jamesls avatar Mar 11 '16 20:03 jamesls

Lambda has some version of Boto there by default. Is there any workaround to force the broken version to pass the right signature name by default? There's no way to force AWS to upgrade their Boto version.

michaelgrosser avatar Mar 16 '16 15:03 michaelgrosser

Nevermind - the solution to this for now, if any other Lambda users stumble across is, is just to package your own version of boto3 from a virtualenv into your Lambda function zip package. That's probably good long run advice anyway so you don't find yourself in this type of situation again.

michaelgrosser avatar Mar 16 '16 15:03 michaelgrosser

I am doing monkey patch right now to those two functions that are affected. FYI today the same bug has spread to us-east-1 , Virginia. funny that Tokyo got hit first

marcuslow avatar Mar 16 '16 15:03 marcuslow