Skip to content

AttributeError: 'dict' object has no attribute 'startswith' #1

@schmir

Description

@schmir

just got this traceback:

2013-06-02 13:16:50,797:pyelasticsearch:http://localhost:9200 marked as dead for
 300 seconds.
2013-06-02 13:16:50,799:requests.packages.urllib3.connectionpool:Starting new HT
TP connection (2): localhost
2013-06-02 13:18:59,933:bemo.index_control:total added 5702009 docs
(0.14 docs/sec 0.02 MByte/sec) Index Size: 14259.71 MB
Traceback (most recent call last):
  File "/home/ralf/bemo/bin/bemopy", line 47, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/home/ralf/cpidx.py", line 49, in <module>
    ic.index_documents(src, report_stats=index_control.make_report_stats())
  File "/home/ralf/bemo/bemo/index_control.py", line 140, in index_documents
    for doc in documents:
  File "/home/ralf/cpidx.py", line 27, in iterate_scroll
    result = conn.scroll(scroll_id=scroll_id, scroll="10m")
  File "/home/ralf/.buildout/cache/eggs/pyelasticsearch-0.5_brainbot_1_20130516-
py2.7.egg/pyelasticsearch/client.py", line 96, in decorate
    return func(*args, query_params=query_params, **kwargs)
  File "/home/ralf/.buildout/cache/eggs/pyelasticsearch-0.5_brainbot_1_20130516-
py2.7.egg/pyelasticsearch/client.py", line 622, in scroll
    query_params=query_params)
  File "/home/ralf/.buildout/cache/eggs/pyelasticsearch-0.5_brainbot_1_20130516-
py2.7.egg/pyelasticsearch/client.py", line 254, in send_request
    self._raise_exception(resp, prepped_response)
  File "/home/ralf/.buildout/cache/eggs/pyelasticsearch-0.5_brainbot_1_20130516-
py2.7.egg/pyelasticsearch/client.py", line 265, in _raise_exception
    elif error_message.startswith('IndexAlreadyExistsException'):
AttributeError: 'dict' object has no attribute 'startswith'

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