{"action":"created","issue":{"url":"https://api.github.com/repos/ChristopherRabotin/bungiesearch/issues/145","labels_url":"https://api.github.com/repos/ChristopherRabotin/bungiesearch/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/ChristopherRabotin/bungiesearch/issues/145/comments","events_url":"https://api.github.com/repos/ChristopherRabotin/bungiesearch/issues/145/events","html_url":"https://github.com/ChristopherRabotin/bungiesearch/issues/145","id":128534418,"number":145,"title":"TransportError when running search_index --create","user":{"login":"Jiydam","id":8632228,"avatar_url":"https://avatars.githubusercontent.com/u/8632228?v=3","gravatar_id":"","url":"https://api.github.com/users/Jiydam","html_url":"https://github.com/Jiydam","followers_url":"https://api.github.com/users/Jiydam/followers","following_url":"https://api.github.com/users/Jiydam/following{/other_user}","gists_url":"https://api.github.com/users/Jiydam/gists{/gist_id}","starred_url":"https://api.github.com/users/Jiydam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jiydam/subscriptions","organizations_url":"https://api.github.com/users/Jiydam/orgs","repos_url":"https://api.github.com/users/Jiydam/repos","events_url":"https://api.github.com/users/Jiydam/events{/privacy}","received_events_url":"https://api.github.com/users/Jiydam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-25T13:14:08Z","updated_at":"2016-01-26T06:50:56Z","closed_at":null,"body":"I followed documentation to install bungiesearch but when I run `search_index --create`, I get this error:\r\n\r\n``` python\r\nINFO:root:Creating index main_index with 1 doctypes.\r\nINFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost\r\nINFO:elasticsearch:PUT http://localhost:9200/main_index [status:200 request:0.119s]\r\nNo handlers could be found for logger \"elasticsearch.trace\"\r\nWARNING:elasticsearch:GET /_cluster/health/main_index?wait_for_status=green&timeout=30 [status:400 request:0.018s]\r\nTraceback (most recent call last):\r\n  File \"/Applications/PyCharm.app/Contents/helpers/pycharm/django_manage.py\", line 41, in <module>\r\n    run_module(manage_file, None, '__main__', True)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 176, in run_module\r\n    fname, loader, pkg_name)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 82, in _run_module_code\r\n    mod_name, mod_fname, mod_loader, pkg_name)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"/Users/administrator/Documents/Myapp/app/manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/Library/Python/2.7/site-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/Library/Python/2.7/site-packages/django/core/management/__init__.py\", line 330, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/Library/Python/2.7/site-packages/django/core/management/base.py\", line 390, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/Library/Python/2.7/site-packages/django/core/management/base.py\", line 441, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/Library/Python/2.7/site-packages/bungiesearch/management/commands/search_index.py\", line 140, in handle\r\n    es.cluster.health(index=','.join(indices), wait_for_status='green', timeout=30)\r\n  File \"/Library/Python/2.7/site-packages/elasticsearch/client/utils.py\", line 69, in _wrapped\r\n    return func(*args, params=params, **kwargs)\r\n  File \"/Library/Python/2.7/site-packages/elasticsearch/client/cluster.py\", line 23, in health\r\n    params=params)\r\n  File \"/Library/Python/2.7/site-packages/elasticsearch/transport.py\", line 307, in perform_request\r\n    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)\r\n  File \"/Library/Python/2.7/site-packages/elasticsearch/connection/http_urllib3.py\", line 89, in perform_request\r\n    self._raise_error(response.status, raw_data)\r\n  File \"/Library/Python/2.7/site-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\nelasticsearch.exceptions.RequestError: TransportError(400, u'parse_exception')\r\n\r\nProcess finished with exit code 1\r\n```\r\n\r\nElasticSearch version\r\n\r\n``` python\r\n\r\n{\r\n\"name\": \"Vance Astro\",\r\n\"cluster_name\": \"elasticsearch_administrator\",\r\n\"version\": {\r\n\"number\": \"2.1.0\",\r\n\"build_hash\": \"72cd1f1a3eee09505e036106146dc1949dc5dc87\",\r\n\"build_timestamp\": \"2015-11-18T22:40:03Z\",\r\n\"build_snapshot\": false,\r\n\"lucene_version\": \"5.3.1\"\r\n},\r\n\"tagline\": \"You Know, for Search\"\r\n}\r\n````\r\n\r\nI ran this url\r\n\r\n```\r\nhttp://localhost:9200/_cluster/health/?wait_for_status=green&timeout=30\r\n```\r\nand I get\r\n\r\n```\r\n{\r\n\"error\": {\r\n\"root_cause\": [\r\n{\r\n\"type\": \"parse_exception\",\r\n\"reason\": \"Failed to parse setting [timeout] with value [30] as a time value: unit is missing or unrecognized\"\r\n}\r\n],\r\n\"type\": \"parse_exception\",\r\n\"reason\": \"Failed to parse setting [timeout] with value [30] as a time value: unit is missing or unrecognized\"\r\n},\r\n\"status\": 400\r\n}\r\n```\r\n\r\nbut this worked:\r\n\r\n```\r\nhttp://localhost:9200/_cluster/health/main_index?wait_for_status=green&timeout=30ms\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ChristopherRabotin/bungiesearch/issues/comments/174860909","html_url":"https://github.com/ChristopherRabotin/bungiesearch/issues/145#issuecomment-174860909","issue_url":"https://api.github.com/repos/ChristopherRabotin/bungiesearch/issues/145","id":174860909,"user":{"login":"Jiydam","id":8632228,"avatar_url":"https://avatars.githubusercontent.com/u/8632228?v=3","gravatar_id":"","url":"https://api.github.com/users/Jiydam","html_url":"https://github.com/Jiydam","followers_url":"https://api.github.com/users/Jiydam/followers","following_url":"https://api.github.com/users/Jiydam/following{/other_user}","gists_url":"https://api.github.com/users/Jiydam/gists{/gist_id}","starred_url":"https://api.github.com/users/Jiydam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jiydam/subscriptions","organizations_url":"https://api.github.com/users/Jiydam/orgs","repos_url":"https://api.github.com/users/Jiydam/repos","events_url":"https://api.github.com/users/Jiydam/events{/privacy}","received_events_url":"https://api.github.com/users/Jiydam/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T06:50:56Z","updated_at":"2016-01-26T06:50:56Z","body":"```\r\npip show elasticsearch-dsl\r\n\r\nMetadata-Version: 2.0\r\nName: elasticsearch-dsl\r\nVersion: 0.0.10\r\nSummary: Python client for Elasticsearch\r\nHome-page: https://github.com/elasticsearch/elasticsearch-dsl-py\r\nAuthor: Honza Král\r\nAuthor-email: honza.kral@gmail.com\r\nLicense: Apache License, Version 2.0\r\nLocation: /Library/Python/2.7/site-packages\r\nRequires: elasticsearch, six, python-dateutil\r\n\r\n```\r\n\r\nThis is the version I have for elasticsearch-dsl, and I believe it is the latest."}}