Nekmo/gkeep

LoginError

JulianSauer opened this issue · 15 comments

I tried adding an item with gkeep --auth auth.txt add-item <note id> "TEST" where auth.txt contains my email and password. However those seem to be invalid:

[Error] GKeep Exception:
LoginError: Check credentials file. The syntax is: <username> <password>.

I am quite sure that my email and password are correct - any idea why it is not working?

Nekmo commented

Surely the file auth.txt contains errors. Try using your username instead of email and delete spaces and extra line breaks.

How do I find my username? There only seems to be a display name.

I simply ran echo 'my.email@mail.com password > auth.txt

This could be related to kiwiz/gkeepapi#20.

I keep getting the same error. My credentials are OK, I dont use 2factorauth.

what about non [a-z][A-Z] characters in the password. Could that be a problem? What if I have a literal space character in my password?

Nekmo commented

I keep getting the same error. My credentials are OK, I dont use 2factorauth.

This normally should not be a problem.

then this is not normal ;-)

I dont have a literal space character in my password. But there are several special characters. Dont know is that could be an issue.
I want this to work! Can I help? Could provide further info.

My setup is the termux-app running on my phone. I want to be able to control my shopping list etc through tasker. I know, this sounds wierd but thats how I roll! So Im on python 3.7.2

Ive got syncthing running in termux as well and it runs like hell.

I have the same issue @Nekmo and I followed pretty much the same procedure as @syslino

I am also somewhat surprised that it is so easy to auth with Google Keep

Same issue! Authentication issue while providing the correct email and password

Nekmo commented

The next version will include improvements for the login. I will need beta-testers for testing!

@Nekmo Let me know when you do, I would be happy to help!

Nekmo commented

@notflip do you have "Less secure apps" activated in your Google account?

https://support.google.com/accounts/answer/6010255

Try the unsafe mode (activated mode): https://myaccount.google.com/

Nekmo commented

If the error continues, install the latest version from the development branch:

pip install https://github.com/Nekmo/gkeep/archive/develop.zip

Incidence #25 improves the login process.

Question is, how safe is it to allow less-safe-apps, how are my credentials stored?

Nekmo commented

allow less-safe-apps mode is less secure with unreliable apps but you can turn it back on later. You can check the source code before installing.

In the development branch your credentials are stored in ~/.config/gkeep. You can delete the folder after testing @notflip

Nekmo commented

Closed due to inactivity.