googlearchive / PyDrive

Google Drive API Python wrapper library
Other
1.31k stars 272 forks source link

Pydrive unable to authenticate(freezes) #206

Open kshitij9969 opened 4 years ago

kshitij9969 commented 4 years ago

I am running below code:

from pydrive.auth import GoogleAuth

gauth = GoogleAuth() gauth.LocalWebserverAuth()

It opens a browser tab. I login and authorise. It redirects to the redirect uri with appropriate code(http://localhost:8080/code=...) and displays 'it works'.

However nothing happens in the terminal where I expect to see authentication successful.

Am I missing anything here?

I followed steps mentioned in the documentation of pydrive.

kshitij9969 commented 4 years ago

PS: This is not just happening with PyDrive, it also happens when I used Drive API directly.

LucSpan commented 4 years ago

Can't authenticate either (https://stackoverflow.com/questions/63955197/pydrive-2-0-authenticationerror-no-code-found-in-redirect). Have you found a solution?