Skip to content

ValidationException in send message #107

@xuset

Description

@xuset
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/var/gator/api/gator/endpoints/core.py", line 264, in send_message
    data[MFields.FROM_CUSTOMER], data[MFields.MTYPE])
  File "/var/gator/api/gator/logic/transactions.py", line 74, in send_message
    if not transaction.save():
  File "/var/gator/api/gator/core/models.py", line 144, in save
    return self.item.partial_save()
  File "/usr/local/lib/python3.4/dist-packages/boto/dynamodb2/items.py", line 410, in partial_save
    returned = self.table._update_item(key, final_data, expects=expects)
  File "/usr/local/lib/python3.4/dist-packages/boto/dynamodb2/table.py", line 852, in _update_item
    self.connection.update_item(self.table_name, raw_key, item_data, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/boto/dynamodb2/layer1.py", line 2765, in update_item
    body=json.dumps(params))
  File "/usr/local/lib/python3.4/dist-packages/boto/dynamodb2/layer1.py", line 2842, in make_request
    retry_handler=self._retry_handler)
  File "/usr/local/lib/python3.4/dist-packages/boto/connection.py", line 954, in _mexe
    status = retry_handler(response, i, next_sleep)
  File "/usr/local/lib/python3.4/dist-packages/boto/dynamodb2/layer1.py", line 2882, in _retry_handler
    response.status, response.reason, data)
boto.dynamodb2.exceptions.ValidationException: ValidationException: 400 Bad Request
{'message': 'One or more parameter values were invalid: An AttributeValue may not contain an empty string', '__type': 'com.amazon.coral.validate#ValidationException'}
172.31.24.127 - - [21/Mar/2016:18:32:24 +0000] "POST /core/send_message/11765448637292169092-1458584785425935?token=Mzc4MDYxMDc4MzcyOTgyODI0MTpkZWxlZ2F0b3I6MTQ1ODY3MTIyMDpxY29QVjkrUG90aEUvNGpndEI2VFB     ZT1hFVnVVWkZNUkF1VitXVks2UGhFPQ%3D%3D HTTP/1.1" 500 75 "https://delegator.godelegateit.com/" "Mozilla/5.0 (Linux; Android 5.0.2; A0001 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0     .2623.91 Mobile Safari/537.36"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions