ndbeals / keep-exporter

A command line utility to export Google Keep notes to markdown.
https://pypi.org/project/keep-exporter/
BSD 3-Clause "New" or "Revised" License
96 stars 1 forks source link

Authentication failing #26

Open soabwahott opened 2 years ago

soabwahott commented 2 years ago

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 commented 1 year ago

Same issue

ndbeals commented 1 year ago

Do you use 2FA for your google account?

soabwahott commented 1 year ago

Yes

ndbeals commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

chaoscreater commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 https://github.com/kiwiz/gkeepapi/issues/135