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

KeyError: 'content-length' when cloning from OSF if Github-Add-on is activated #197

Open
stebo85 opened this issue Apr 28, 2021 · 1 comment

Comments

@stebo85
Copy link
Contributor

stebo85 commented Apr 28, 2021

Dear OSFclient team,

I hit a strange bug when trying to clone an OSF repo with a github add-on activated (osclient version 0.0.5 installed from pip):

0files [00:05, ?files/s]
Traceback (most recent call last):
File "/usr/local/bin/osf", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/osfclient/main.py", line 120, in main
exit_code = args.func(args)
File "/usr/local/lib/python3.7/dist-packages/osfclient/cli.py", line 98, in wrapper
return_value = f(cli_args)
File "/usr/local/lib/python3.7/dist-packages/osfclient/cli.py", line 180, in clone
file_.write_to(f)
File "/usr/local/lib/python3.7/dist-packages/osfclient/models/file.py", line 61, in write_to
int(response.headers['Content-Length']))
File "/usr/local/lib/python3.7/dist-packages/requests/structures.py", line 54, in getitem
return self._store[key.lower()][1]
KeyError: 'content-length'

I deactivated the github-addon on OSF and the error disappeared. Any ideas what this could be?

The fetch command works ok, so my initial guess it that it trips over content in the git repo?

@famosab
Copy link

famosab commented Mar 1, 2024

I observed the same error. Are there any news? I would really like to use the github addon!

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

2 participants