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

AttributeError: 'DynamoHandler' object has no attribute 'update_item' #16

Closed
antimora opened this issue Apr 13, 2013 · 1 comment
Closed

Comments

@antimora
Copy link
Contributor

Getting the following error when executing update_item on an item.

ERROR: test_item_attribute_operations (dynamodb-test.AWSDynamoDBTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dilshod/source-code/somecode/star/site-packages/somelib/tests/dynamodb-test.py", line 222, in test_item_attribute_operations
    itemx.save()
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/boto/dynamodb/item.py", line 141, in save
    return_values)
  File "/home/dilshod/source-code/somecode/star/site-packages/somelib/dynamodb.py", line 348, in update_item
    return_values)
  File "/home/dilshod/source-code/somecode/star/site-packages/somelib/dynamodb.py", line 333, in _item_action
    action(item, *args)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/boto/dynamodb/layer2.py", line 590, in update_item
    object_hook=self.dynamizer.decode)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 424, in update_item
    object_hook=object_hook)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 118, in make_request
    retry_handler=self._retry_handler)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/boto/connection.py", line 836, in _mexe
    response = connection.getresponse()
  File "/usr/lib/python2.7/httplib.py", line 1032, in getresponse
    response = self.response_class(*args, **kwds)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/boto/connection.py", line 389, in __init__
    httplib.HTTPResponse.__init__(self, *args, **kwargs)
  File "/usr/lib/python2.7/httplib.py", line 346, in __init__
    self.fp = sock.makefile('rb', 0)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/moto/packages/httpretty.py", line 262, in makefile
    self._entry.fill_filekind(self.fd, self._request)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/moto/packages/httpretty.py", line 558, in fill_filekind
    response = self.body(req_info, self.method, req_body, req_headers)
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/moto/dynamodb/responses.py", line 300, in handler
    return DynamoHandler(uri, method, body, headers_to_dict(headers)).dispatch()
  File "/home/dilshod/pyenv/somecode-star/local/lib/python2.7/site-packages/moto/dynamodb/responses.py", line 59, in dispatch
    return getattr(self, endpoint)(self.uri, self.method, self.body, self.headers)
AttributeError: 'DynamoHandler' object has no attribute 'update_item'

@spulec spulec closed this as completed in e66916d Nov 30, 2014
@spulec
Copy link
Collaborator

spulec commented Nov 30, 2014

I've added some very basic support. Feel free to open issues for any additional features.

spulec pushed a commit that referenced this issue Nov 15, 2019
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