You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "//webdav-test.py", line 13, in
client.download(remote_path=TESTFILE,local_path="./test.txt")
File "/usr/local/lib/python3.9/site-packages/webdav3/client.py", line 397, in download
self.download_file(local_path=local_path, remote_path=remote_path, progress=progress,
File "/usr/local/lib/python3.9/site-packages/webdav3/client.py", line 67, in _wrapper
res = fn(self, *args, **kw)
File "/usr/local/lib/python3.9/site-packages/webdav3/client.py", line 458, in download_file
total = int(response.headers['content-length'])
File "/usr/local/lib/python3.9/site-packages/requests/structures.py", line 54, in getitem
return self._store[key.lower()][1]
KeyError: 'content-length'
Current workaround
Force downgrade to 3.14.5: pip3 install webdavclient3==3.14.5
The text was updated successfully, but these errors were encountered:
TXST-ITAC-SAAS
changed the title
download() broken in 3.14.6 with Python 3.9 docker image
Error with download() and download_sync() in 3.14.6
Aug 17, 2021
Steps to reproduce
from webdav3.client import Client
options = { 'webdav_hostname': HOSTNAME, 'webdav_login': LOGIN, 'webdav_password': PASSWORD, 'webdav_root': DAVROOT, 'disable_check': True }
client = Client(options)
client.download(remote_path=TESTFILE,local_path="./test.txt")
Error
Current workaround
Force downgrade to 3.14.5: pip3 install webdavclient3==3.14.5
The text was updated successfully, but these errors were encountered: