I'm getting this error once per every 100-200 runs of dynamic-dynamo (approximately):
2013-08-13 18:17:13,792 - dynamic-dynamodb - ERROR - Failed connecting to DynamoDB: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials
: 2013-08-13 18:17:13,792 - dynamic-dynamodb - ERROR - Please report an issue at: https://github.com/sebdah/dynamic-dynamodb/issues
: Traceback (most recent call last):
: File "/usr/local/bin/dynamic-dynamodb", line 22, in <module>
: import dynamic_dynamodb
: File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/__init__.py", line 26, in <module>
: import core
: File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/__init__.py", line 6, in <module>
: import dynamodb
: File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/dynamodb.py", line 56, in <module>
: DYNAMODB_CONNECTION = __get_connection_dynamodb()
: File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/dynamodb.py", line 23, in __get_connection_dynamodb
: File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/__init__.py", line 65, in connect_to_region
: return region.connect(**kw_params)
: File "/usr/local/lib/python2.7/dist-packages/boto/regioninfo.py", line 63, in connect
: return self.connection_cls(region=self, **kw_params)
: File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/layer2.py", line 152, in __init__
: File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/layer1.py", line 92, in __init__
: File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 554, in __init__
: host, config, self.provider, self._required_auth_capability())
: File "/usr/local/lib/python2.7/dist-packages/boto/auth.py", line 686, in get_auth_handler
: 'Check your credentials' % (len(names), str(names)))
: boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials
Thanks for the bug report. This is most likely a connection issue of some sort between boto and DynamoDB.
The issue is not on the Dynamic DynamoDB side, but a workaround could be to try to reconnect if the connection fails (for whatever reason).
I'll see if I can work on a reconnection feature to resolve this.
Added functionality for retrying failed connections #51
This is handled in release 1.4.0! Just sudo pip install -U dynamic-dynamodb to get the latest release.
sudo pip install -U dynamic-dynamodb