-
Notifications
You must be signed in to change notification settings - Fork 70
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
AuthenticationError: No code found in redirect #58
Comments
@LucSpan hi! I haven't been able to reproduce this on the latest version. I think we'll need more information to help you. Could you check what do you have in the browser URL bar after you click Continue? Let's also try a clean environment ?
|
Hi @shcheklein , thank you for your quick reply! I have managed to connect via Google's quickstart.py: https://stackoverflow.com/questions/63956706/google-drive-api-quickstart-py-error-400-redirect-uri-mismatch. Pip freeze output,
|
@LucSpan sounds promising. Have you tried to run it in a clean virtual environment? Also, still curious what do you see in your browser, would be great if you could enable dev console and check + copy/paste network requests. |
@shcheklein , when I run your clean virtual environment commands I get a,
I copied the HTTP requests of all network requests.
Let me know if this is helpful or if you need different info about the network requests. |
@shcheklein your help would be much appreciated. I have the following client_secrets.json,
As said previously, using this I can connect effortless to the Google Drive API via Google's quickstart.py. However, I'd really like to keep using PyDrive2, rewriting the code to work with the quickstart.py set-up would be cumbersome. |
@LucSpan the problem is that I can't reproduce it on my end, and the information you shared still not complete. To being able to help we need to try those things I mentioned.
|
Closing as stale, not able to reproduce this. |
I have a related issue. I followed the instructions to set up PyDrive2 within an existing project. After installing PyDrive2 and creating the client_secrets.json (which is in the same directory) I tried to test it ran this code
after runnig I get this Traceback:
I tried @shcheklein solution by testing it within a clean environment but could get it to work either. The problem seemed to be the application type "web". After creating new credentials with an application type "desktop" the authentication process worked with the new environment. Do you have any ideas why this happens? EDIT: |
Since yesterday I can't authenticate anymore.
Code
Error
client_secrets.json
is in the working directory.How do I solve this?
The text was updated successfully, but these errors were encountered: