derrix060 / onedriveClient

A Microsoft OneDrive and OneDrive for Business client for Linux, written in Python3.
MIT License
65 stars 10 forks source link

Failed to connect to OneDrive for Business #29

Open quen2404 opened 5 years ago

quen2404 commented 5 years ago

Hello, i'm trying to use your client to connect to my onedrive for business account. But i have an error:

onedrived-pref account add -b
NOTE: To better manage your OneDrive accounts, onedrived needs permission to access your account info (e.g., email address to distinguish different accounts) and read/write your OneDrive files.

Paste this URL into your browser to sign in and authorize onedrived:

https://login.microsoftonline.com/common/oauth2/authorize?client_id=6fdb55b4-c905-4612-bd23-306c3918217c&response_type=code&redirect_uri=https%3A%2F%2Fod.cnbeining.com&scope=U+s+e+r+.+R+e+a+d+++o+f+f+l+i+n+e+_+a+c+c+e+s+s

The authentication web page will finish with a blank page whose URL starts with "https://od.cnbeining.com". Paste this URL after the prompt.
Paste URL here: https://od.cnbeining.com/?XXXX
Need authenticate again to get personal information'
Paste this URL into your browser to sign in and authorize onedrived:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=0e170d2c-0ac5-4a4f-9099-c6bb0fb52d0c&response_type=code&redirect_uri=https://onedrivesite.mario-apra.tk/&scope=User.Read offline_access

The authentication web page will finish with a blank page whose URL starts with "https://onedrivesite.mario-apra.tk/". Paste this URL after the prompt.
Paste URL here: https://onedrivesite.mario-apra.tk/?XXXX

Failed to authorize onedrived: list index out of range.

Does someone has already experienced that kind of issue ?

derrix060 commented 5 years ago

I've just used the same link and worked fine for me... I will try to check where it could happen...

derrix060 commented 5 years ago

@quen2404 I wasn't able to reproduce this issue. Do you still have it? Can you post the step-by-step how you installed and executed all?

malanb5 commented 5 years ago

Still having the same issue as quen2404

derrix060 commented 5 years ago

hello @malanb5, in that case, can you post the step-by-step how you've installed and executed? Only with the log posted by @quen2404 I was unable to know what's going on...

Also please use the --debug flag ;)

derrix060 commented 5 years ago

My best shot should be that you guys are not pasting the entire URL. Here, the code expects to have a ? signal to split the string (from ...?code=bla)