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

OneDrive returns 302 Found on PROPFIND #31

Open
dmacesic opened this issue Feb 28, 2015 · 2 comments
Open

OneDrive returns 302 Found on PROPFIND #31

dmacesic opened this issue Feb 28, 2015 · 2 comments

Comments

@dmacesic
Copy link

Traceback (most recent call last):
File "davput.py", line 24, in
print webdav.ls()
File "/usr/local/lib/python2.7/dist-packages/easywebdav/client.py", line 176, in ls
response = self._send('PROPFIND', remote_path, (207, 301), headers=headers)
File "/usr/local/lib/python2.7/dist-packages/easywebdav/client.py", line 100, in _send
raise OperationFailed(method, path, expected_code, response.status_code)
easywebdav.client.OperationFailed: Failed to list directory ".".
Operation : PROPFIND .
Expected code : 207 UNKNOWN, 301 Moved Permanently
Actual code : 302 Found

The WebDAV address used is of the format: https://d.docs.live.net/(cid here)/

@rtribbia
Copy link

rtribbia commented Jan 6, 2016

I am receiving the same error. I can cd into folders blindly if I am certain they exist but, I'd like to be able to check.

Did you find a solution?

@dstaff159
Copy link

Are you calling connect with the full web address or just the part after the protocol? If found that the member initilizer of Client concatenates the protocol, host, and port together to form the baseurl.

self.baseurl = '{0}://{1}:{2}'.format(protocol, host, port)

Remove the "https//" from the host variable and it should work

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

3 participants