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

Fragment upload fails on python3.5 "This access token is not valid on this endpoint." #720

Closed
gojohnkevin opened this issue Oct 4, 2017 · 5 comments
Assignees

Comments

@gojohnkevin
Copy link

gojohnkevin commented Oct 4, 2017

Reference for #690

`GET
{'Authorization': 'bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhIQnlLVS0wRHFBcU1aaDZaRlBkMlZXYU90ZyIsImtpZCI6IkhIQnlLVS0wRHFBcU1aaDZaRlBkMlZXYU90ZyJ9.eyJhdWQiOiJodHRwczovL2xhemFkYWdyb3VwLW15LnNoYXJlcG9pbnQuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvMzYzYTIzNTQtZjc3MC00YzZlLTliZWQtYTVmODJmMTNkOTA5LyIsImlhdCI6MTUwNzEwMzc3NiwibmJmIjoxNTA3MTAzNzc2LCJleHAiOjE1MDcxMDc2NzYsImFjciI6IjEiLCJhaW8iOiJBVFFBeS84RkFBQUFLdkczMUVSUGowRzZTS0dWZ2ZBSENxSFJmUWtpWjltYitQT1ZWdU5Dc0M4b0tBaGt6cUpIOGlEbHNXaENlQk9oIiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBfZGlzcGxheW5hbWUiOiJDTEkgQWNjZXNzIiwiYXBwaWQiOiI4MzRkZjcyZS0wYTA3LTRkOWMtYjVkNi00MGUyNTBlMjczOTEiLCJhcHBpZGFjciI6IjEiLCJmYW1pbHlfbmFtZSI6IkdvIiwiZ2l2ZW5fbmFtZSI6IktldmluIiwiaXBhZGRyIjoiMTE4LjE4OS4xMzUuMzgiLCJuYW1lIjoiS2V2aW4gR28gKExhemFkYSBHcm91cCkiLCJvaWQiOiI0NzlkZjlkMC1mOWU4LTQ3NmEtYTMyZS04Mj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WyJrbXNpIl0sInN1YiI6IllrT3BiYW1Idk5kc2FHVVNIeXZDdXJCdTdIRU9tNGlWSDljeGMyVGJGV1EiLCJ0aWQiOiIzNjNhMjM1NC1mNzcwLTRjNmUtOWJlZC1hNWY4MmYxM2Q5MDkiLCJ1bmlxdWVfbmFtZSI6ImtldmluLmdvQGxhemFkYS5jb20iLCJ1cG4iOiJrZXZpbi5nb0BsYXphZGEuY29tIiwidmVyIjoiMS4wIn0.nH_V4GvR5NMfKs_-ayCU2etONzngYXbl0YUcKEDdnhh_UM6P8YKUQg5LjckVtb7u7GlrHwOFyjRzhuS7zwBBQDuMdtnjbIW8Kr0x32SOgbLihRT6jVqL4-rgsufNKhBuIy7U_60OsQNWL2ejZT1mRj72e4MMYQke68bSc5xYH7qMyLCHbXDP_g4pbNDeJqDRkO0RGiBhinVL6SM3hgrVOCwFe7_DUgkYtMPwXdkXKXt9soDi3uTD6OMt4zVNB2lbf7-ZzWzm1FrPZvil0Xqs1Mmb1LzVWOkRM7s2-Win-y_0G3i3U58ZuwwCrxs-S1hepkoisCWOnSOFnEtbUaUWPQ', 'Content-Type': 'application/json', 'X-RequestStats': 'SDK-Version=python-v1.1.8'}
https://xxxx.sharepoint.com/_api/v2.0/drives/me/items/01HWPZQB56Y2GOVW7725BZO354PWSELRRZ/children/PDI.zip/upload.createSession

PUT
{'Authorization': 'bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhIQnlLVS0wRHFBcU1aaDZaRlBkMlZXYU90ZyIsImtpZCI6IkhIQnlLVS0wRHFBcU1aaDZaRlBkMlZXYU90ZyJ9.eyJhdWQiOiJodHRwczovL2xhemFkYWdyb3VwLW15LnNoYXJlcG9pbnQuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvMzYzYTIzNTQtZjc3MC00YzZlLTliZWQtYTVmODJmMTNkOTA5LyIsImlhdCI6MTUwNzEwMzc3NiwibmJmIjoxNTA3MTAzNzc2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WQgUGVvcGxlLlJlYWQuQWxsIFNpdGVzLlJlYWQuQWxsIFNpdGVzLlJlYWRXcml0ZS5BbGwgVXNlci5SZWFkIFVzZXIuUmVhZC5BbGwgVXNlci5SZWFkQmFzaWMuQWxsIFVzZXIuUmVhZFdyaXRlIFVzZXIuUmVhZFdyaXRlLkFsbCIsInNpZ25pbl9zdGF0ZSI6WyJrbXNpIl0sInN1YiI6IllrT3BiYW1Idk5kc2FHVVNIeXZDdXJCdTdIRU9tNGlWSDljeGMyVGJGV1EiLCJ0aWQiOiIzNjNhMjM1NC1mNzcwLTRjNmUtOWJlZC1hNWY4MmYxM2Q5MDkiLCJ1bmlxdWVfbmFtZSI6ImtldmluLmdvQGxhemFkYS5jb20iLCJ1cG4iOiJrZXZpbi5nb0BsYXphZGEuY29tIiwidmVyIjoiMS4wIn0.nH_V4GvR5NMfKs_-ayCU2etONzngYXbl0YUcKEDdnhh_UM6P8YKUQg5LjckVtb7u7GlrHwOFyjRzhuS7zwBBQDuMdtnjbIW8Kr0x32SOgbLihRT6jVqL4-rgsufNKhBuIy7U_60OsQNWL2ejZT1mRj72e4MMYQke68bSc5xYH7qMyLCHbXDP_g4pbNDeJqDRkO0RGiBhinVL6SM3hgrVOCwFe7_DUgkYtMPwXdkXKXt9soDi3uTD6OMt4zVNB2lbf7-ZzWzm1FrPZvil0Xqs1Mmb1LzVWOkRM7s2-Win-y_0G3i3U58ZuwwCrxs-S1hepkoisCWOnSOFnEtbUaUWPQ', 'X-RequestStats': 'SDK-Version=python-v1.1.8', 'Content-Range': 'bytes 0-10485759/641870611', 'Content-Length': '10485760'}
https://xxxx.sharepoint.com/personal/xxxx/_api/v2.0/drives/b!4isAREOvYUCY8lRjTpHzWa21UOdOhqlItR1uPJUPLe-Iw_UNO2jaRJYTyaLQZP0l/items/01HWPZQB56Y2GOVW7725BZO354PWSELRRZ/uploadSession?tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhdWQiOiIwMDAwMDAw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JOcTY5bz0&overwrite=True&rename=False&guid=%274e059995-0d92-484e-a93f-79a058b3488f%27&path=%27%7Etmp88_PDI.zip%27
<onedrivesdk.helpers.file_slice.FileSlice object at 0x7fa9aa97a9e8>

{'error_description': 'This access token is not valid on this endpoint.', 'error': 'invalid_request'}
invalid_request`

@ificator
Copy link
Contributor

ificator commented Oct 4, 2017

There are a couple of things that look out of the ordinary here:

  1. You should not be providing the Authorization header for the PUT, although this will not result in the failure.
  2. The URL that is being used in the PUT request appears to have been modified. Specifically the query string parameters are in a different order, and it's most likely this that's triggering the failure.

Can you look at your code and make sure that the URL is not being modified before it's used?

@gojohnkevin
Copy link
Author

Hello @ificator you we're right about number 2. problem is python3.5 and below doesn't retain the position of values in the dictionary.

Thank you

@gojohnkevin
Copy link
Author

I have added a pull request in the onedrivesdk to fix this issue.

@ificator
Copy link
Contributor

ificator commented Oct 5, 2017

Thanks @gojohnkevin !

@ificator
Copy link
Contributor

ificator commented Oct 5, 2017

Linking this issue to the PR: OneDrive/onedrive-sdk-python#116

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

No branches or pull requests

2 participants