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

Failed to connect to OneDrive for Business #29

Open
quen2404 opened this issue Oct 22, 2018 · 5 comments
Open

Failed to connect to OneDrive for Business #29

quen2404 opened this issue Oct 22, 2018 · 5 comments
Assignees
Labels

Comments

@quen2404
Copy link

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
Copy link
Owner

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

@derrix060 derrix060 self-assigned this Oct 22, 2018
@derrix060
Copy link
Owner

@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?

@derrix060 derrix060 assigned quen2404 and unassigned derrix060 Dec 3, 2018
@malanb5
Copy link

malanb5 commented Mar 5, 2019

Still having the same issue as quen2404

@derrix060
Copy link
Owner

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
Copy link
Owner

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)

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

No branches or pull requests

3 participants