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

Sort field is required for dumping #1

Open
CGamesPlay opened this issue Mar 24, 2023 · 0 comments
Open

Sort field is required for dumping #1

CGamesPlay opened this issue Mar 24, 2023 · 0 comments

Comments

@CGamesPlay
Copy link

If the sort argument is not provided, the script fails:

Traceback (most recent call last):
  File "/usr/src/app/elastician/tools.py", line 372, in <module>
    cli()
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/src/app/elastician/tools.py", line 132, in dump
    dump_func(index, es_source, timeout, size, query, sort)
  File "/usr/src/app/elastician/tools.py", line 211, in dump_func
    for d in tqdm(helpers.scan(es_source, index=index, query=q, sort={sort[0]: sort[1]},
TypeError: 'NoneType' object is not subscriptable
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

1 participant