-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upload error: file is partial (410) #2
Comments
switching to 'python2' branch work after some modifications: diff --git a/remote.py b/remote.py
index 7651509..2ec71a4 100644
--- a/remote.py
+++ b/remote.py
@@ -141,7 +141,7 @@ class PydioSdk():
"""
if platform.system() == 'Darwin':
try:
- test = unicodedata.normalize('NFC', unicode_path)
+ test = unicodedata.normalize('NFC', unicode_path.decode('utf-8'))
unicode_path = test
except ValueError as e:
logging.exception(e)
@@ -150,7 +150,7 @@ class PydioSdk():
def normalize(self, unicode_path):
try:
- test = unicodedata.normalize('NFC', unicode_path)
+ test = unicodedata.normalize('NFC', unicode_path.decode('utf-8'))
return test
except ValueError as e:
logging.exception(e)
@@ -159,7 +159,7 @@ class PydioSdk():
def normalize_reverse(self, unicode_path):
if platform.system() == 'Darwin':
try:
- test = unicodedata.normalize('NFD', unicode_path)
+ test = unicodedata.normalize('NFD', unicode_path.decode('utf-8'))
return test
except ValueError as e:
logging.exception(e) |
I also have this same error in my pydio |
I can confirm that the same problem happens when building the module in Ubuntu 18.04 using the python-2 branch. Let me know if any other information is needed. |
For future reference in my case the cause of the problem was that I was using a newer version of the requests module 2.18.4. Downgrading to requests 2.5.1 as stated in the requirements.txt file solved the problem for me. |
Hello,
I'm trying to upload a file to pydio with pydio-sdk-python but no matter the size of the file, it always return: Upload error: file is partial (410). I'm using python3.
My simple code:
the error:
The text was updated successfully, but these errors were encountered: