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

upload_async fails in < python 3.6 #114

Open
gojohnkevin opened this issue Aug 28, 2017 · 1 comment · Fixed by AtakamaLLC/onedrive-sdk-python#1 · May be fixed by #116
Open

upload_async fails in < python 3.6 #114

gojohnkevin opened this issue Aug 28, 2017 · 1 comment · Fixed by AtakamaLLC/onedrive-sdk-python#1 · May be fixed by #116

Comments

@gojohnkevin
Copy link

gojohnkevin commented Aug 28, 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

@KTibow
Copy link

KTibow commented Mar 16, 2020

@gojohnkevin #116 mentions that it closes this. Update your library and try again. If it's fixed, consider closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants