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

Error during dandi upload #566

Closed
CodyCBakerPhD opened this issue Apr 13, 2021 · 1 comment · Fixed by #567
Closed

Error during dandi upload #566

CodyCBakerPhD opened this issue Apr 13, 2021 · 1 comment · Fixed by #567

Comments

@CodyCBakerPhD
Copy link
Contributor

CodyCBakerPhD commented Apr 13, 2021

@yarikoptic @satra

Trying to upload Loren Franks data with all the hdmf/pynwb fixes, and it's passing validation but final upload gives this traceback (with the --pdb flag, just says Error: 'api without flag). Any ideas?

Same traceback occurs on current Pypi release as well as primary branch of dandi-cli.

CC @bendichter

Traceback (most recent call last):
  File "/home/cbaker239/miniconda3/bin/dandi", line 33, in <module>
    sys.exit(load_entry_point('dandi', 'console_scripts', 'dandi')())
  File "/home/cbaker239/miniconda3/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/cbaker239/miniconda3/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/cbaker239/miniconda3/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/cbaker239/miniconda3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/cbaker239/miniconda3/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/cbaker239/miniconda3/lib/python3.8/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/mnt/scrap/cbaker239/dandi-cli/dandi/cli/base.py", line 109, in wrapper
    return f(*args, **kwargs)
  File "/mnt/scrap/cbaker239/dandi-cli/dandi/cli/cmd_upload.py", line 130, in upload
    upload(
  File "/mnt/scrap/cbaker239/dandi-cli/dandi/upload.py", line 48, in upload
    instance = get_instance(dandi_instance)
  File "/mnt/scrap/cbaker239/dandi-cli/dandi/utils.py", line 626, in get_instance
    api=server_info["services"]["api"]["url"],
KeyError: 'api'
@yarikoptic
Copy link
Member

you could now update dandi-cli and try again, or just wait a bit until redirector gets restarted.

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

Successfully merging a pull request may close this issue.

2 participants