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
{{ message }}
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
I have a file worth 600mb. Tried using python 3.6, upload_sync works well but tried on python 3.5.3, it fails.
{'error': 'invalid_request', 'error_description': 'This access token is not valid on this endpoint.'}
Here's the traceback: Traceback (most recent call last): File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedriveb_cli/actions.py", line 195, in upload uploaded_item = client.item(drive=drive, id=resource_id).children[cleaned_filename].upload_async(file) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/version_bridge/fragment_upload.py", line 173, in fragment_upload_async resp = upload_builder.post(i * __PART_SIZE, length) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/version_bridge/fragment_upload.py", line 121, in post return self.request(begin, length, options).post() File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/version_bridge/fragment_upload.py", line 57, in post entity = UploadSession(json.loads(self.send(data=self._file_handle).content)) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/request_base.py", line 151, in send data=data) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/http_provider.py", line 71, in send custom_response = HttpResponse(response.status_code, response.headers, response.text) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/http_response.py", line 62, in __init__ raise Exception(str(message["error"])) Exception: invalid_request
The text was updated successfully, but these errors were encountered:
gojohnkevin
changed the title
upload_sync fails in < python 3.6
upload_async fails in < python 3.6
Aug 30, 2017
I have a file worth 600mb. Tried using python 3.6, upload_sync works well but tried on python 3.5.3, it fails.
{'error': 'invalid_request', 'error_description': 'This access token is not valid on this endpoint.'}
Here's the traceback:
Traceback (most recent call last): File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedriveb_cli/actions.py", line 195, in upload uploaded_item = client.item(drive=drive, id=resource_id).children[cleaned_filename].upload_async(file) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/version_bridge/fragment_upload.py", line 173, in fragment_upload_async resp = upload_builder.post(i * __PART_SIZE, length) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/version_bridge/fragment_upload.py", line 121, in post return self.request(begin, length, options).post() File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/version_bridge/fragment_upload.py", line 57, in post entity = UploadSession(json.loads(self.send(data=self._file_handle).content)) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/request_base.py", line 151, in send data=data) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/http_provider.py", line 71, in send custom_response = HttpResponse(response.status_code, response.headers, response.text) File "/home/keving/.pyenv/versions/3.5.3/lib/python3.5/site-packages/onedrivesdk/http_response.py", line 62, in __init__ raise Exception(str(message["error"])) Exception: invalid_request
The text was updated successfully, but these errors were encountered: