{"action":"closed","issue":{"url":"https://api.github.com/repos/google/timesketch/issues/165","repository_url":"https://api.github.com/repos/google/timesketch","labels_url":"https://api.github.com/repos/google/timesketch/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/google/timesketch/issues/165/comments","events_url":"https://api.github.com/repos/google/timesketch/issues/165/events","html_url":"https://github.com/google/timesketch/issues/165","id":133372172,"number":165,"title":"Adding comments Error","user":{"login":"80626420","id":17209823,"avatar_url":"https://avatars.githubusercontent.com/u/17209823?v=3","gravatar_id":"","url":"https://api.github.com/users/80626420","html_url":"https://github.com/80626420","followers_url":"https://api.github.com/users/80626420/followers","following_url":"https://api.github.com/users/80626420/following{/other_user}","gists_url":"https://api.github.com/users/80626420/gists{/gist_id}","starred_url":"https://api.github.com/users/80626420/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/80626420/subscriptions","organizations_url":"https://api.github.com/users/80626420/orgs","repos_url":"https://api.github.com/users/80626420/repos","events_url":"https://api.github.com/users/80626420/events{/privacy}","received_events_url":"https://api.github.com/users/80626420/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-12T23:51:19Z","updated_at":"2016-04-08T08:06:22Z","closed_at":"2016-04-08T08:06:22Z","body":"When trying to tag items in the time line or add comments I get the following error, im running elastic search 1.7.2 and the latest version of timesketch. \r\n\r\nCan any one offer and ideas on this issue? \r\n\r\n\r\n127.0.0.1 - - [12/Feb/2016 23:26:40] \"POST /api/v1/sketches/4/event/annotate/ HTTP/1.1\" 500 -\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1836, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1820, in wsgi_app\r\n    response = self.make_response(self.handle_exception(e))\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 271, in error_router\r\n    return original_handler(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1403, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 268, in error_router\r\n    return self.handle_error(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1817, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 271, in error_router\r\n    return original_handler(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1381, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 268, in error_router\r\n    return self.handle_error(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 477, in wrapper\r\n    resp = resource(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/views.py\", line 84, in view\r\n    return self.dispatch_request(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 587, in dispatch_request\r\n    resp = meth(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_login.py\", line 792, in decorated_view\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/timesketch/api/v1/resources.py\", line 533, in post\r\n    current_user.id, u'__ts_comment', toggle=False)\r\n  File \"/usr/local/lib/python2.7/dist-packages/timesketch/lib/datastores/elastic.py\", line 239, in set_label\r\n    body=script)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py\", line 69, in _wrapped\r\n    return func(*args, params=params, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/client/__init__.py\", line 442, in update\r\n    doc_type, id, '_update'), params=params, body=body)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.py\", line 329, in perform_request\r\n    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py\", line 106, in perform_request\r\n    self._raise_error(response.status, raw_data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/base.py\", line 105, in _raise_error\r\n    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)\r\nRequestError: <unprintable RequestError object>\r\n127.0.0.1 - - [12/Feb/2016 23:28:39] \"GET /sketch/4/explore/export/ HTTP/1.1\" 200 -\r\n127.0.0.1 - - [12/Feb/2016 23:29:14] \"POST /api/v1/sketches/4/event/annotate/ HTTP/1.1\" 500 -\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1836, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1820, in wsgi_app\r\n    response = self.make_response(self.handle_exception(e))\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 271, in error_router\r\n    return original_handler(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1403, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 268, in error_router\r\n    return self.handle_error(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1817, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 271, in error_router\r\n    return original_handler(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1381, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 268, in error_router\r\n    return self.handle_error(e)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 477, in wrapper\r\n    resp = resource(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/views.py\", line 84, in view\r\n    return self.dispatch_request(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 587, in dispatch_request\r\n    resp = meth(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask_login.py\", line 792, in decorated_view\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/timesketch/api/v1/resources.py\", line 545, in post\r\n    current_user.id, form.annotation.data, toggle=toggle)\r\n  File \"/usr/local/lib/python2.7/dist-packages/timesketch/lib/datastores/elastic.py\", line 239, in set_label\r\n    body=script)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py\", line 69, in _wrapped\r\n    return func(*args, params=params, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/client/__init__.py\", line 442, in update\r\n    doc_type, id, '_update'), params=params, body=body)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.py\", line 329, in perform_request\r\n    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py\", line 106, in perform_request\r\n    self._raise_error(response.status, raw_data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/base.py\", line 105, in _raise_error\r\n    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)\r\nRequestError: <unprintable RequestError object>\r\n"}}