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

Authentication failing #26

Open
soabwahott opened this issue Aug 27, 2022 · 10 comments
Open

Authentication failing #26

soabwahott opened this issue Aug 27, 2022 · 10 comments

Comments

@soabwahott
Copy link

This has been broken for a couple of months, fails with this error:

Error: Invalid value: Password login failed: ('NeedsBrowser', 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.')

@chaoscreater
Copy link

Same issue

@ndbeals
Copy link
Owner

ndbeals commented Mar 16, 2023

Do you use 2FA for your google account?

@soabwahott
Copy link
Author

Yes

@ndbeals
Copy link
Owner

ndbeals commented Mar 16, 2023

Did you follow the section in the readme about how to authenticate with 2FA? https://github.com/ndbeals/keep-exporter#notes

I suspect the initial error message you got about using the browser is because of the 2FA sign-in flow.

@soabwahott
Copy link
Author

Yes, I followed the instructions and setup an app password. This worked fine for several months and then all of a sudden stopped. I tried creating a new app password but this didn't help. I'm assuming Google changed something that broke the code.

@chaoscreater
Copy link

chaoscreater commented Mar 17, 2023

same for me. Was working for months, then it broke. My account already had 2FA configured and I was using app password. Nothing has changed.

I've tried other projects similar to this as well and getting the same issue.

Also, if I input the wrong password intentionally, the error will show an error that specifically points out it's a wrong password. So it's not an issue with the app password generated by Google, it's an issue with the new authentication process in their code that probably broke the script.

@ndbeals
Copy link
Owner

ndbeals commented Mar 17, 2023

I see, thanks for the further information, that will help me when I go to recreate this during bug fixing

@chaoscreater
Copy link

I got it working. It's not an issue with my Google app password.

I've had to remove all the virtualenv created by poetry and re-do everything from scratch. Tested working with Python 3.9. Seems like it's broken on 3.7.

@soabwahott
Copy link
Author

thanks @chaoscreater, I did the same, deleted my virtualenv and recreated it. The code is now working with no issues.

I'm also using python 3.9.

I guess we can close the issue!

@chaoscreater
Copy link

thanks @chaoscreater, I did the same, deleted my virtualenv and recreated it. The code is now working with no issues.

I'm also using python 3.9.

I guess we can close the issue!

no problem. There are also these other projects I'm using as backup, in case the solution I currently have fails.

https://github.com/kiwiz/keep-cli
kiwiz/gkeepapi#135

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

No branches or pull requests

3 participants