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

No handler was ready to authenticate #51

Closed
yegor256 opened this Issue Aug 13, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@yegor256

yegor256 commented Aug 13, 2013

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
:      configuration['global']['region'])
:    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__
:      validate_certs=validate_certs)
:    File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/layer1.py", line 92, in __init__
:      validate_certs=validate_certs)
:    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
@sebdah

This comment has been minimized.

Owner

sebdah commented Aug 14, 2013

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.

@sebdah

This comment has been minimized.

Owner

sebdah commented Aug 15, 2013

This is handled in release 1.4.0! Just sudo pip install -U dynamic-dynamodb to get the latest release.

@sebdah sebdah closed this Aug 15, 2013

@yegor256

This comment has been minimized.

yegor256 commented Aug 15, 2013

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment