gkeep.nvim icon indicating copy to clipboard operation
gkeep.nvim copied to clipboard

Failed to log in: incorrect password

Open kaddkaka opened this issue 3 years ago • 7 comments

Describe the bug I'm unable to login to my gmail account using gkeep.nvim. When running :GkeepLogin I get prompted for e-mail and password, but the only message I get is

Failed to log in: incorrect password

Expected behavior Being able to log in.

Version information

  • OS: Ubuntu 22.04.1 LTS (jammy)
  • Neovim:
NVIM v0.7.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az395-591

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
  • Gkeep:
gkeep: health#gkeep#check
========================================================================
## gkeep
 - OK: gkeepapi 0.14.2 installed
 - OK: gpsoauth 1.0.2 installed
 - OK: keyring installed
 - WARNING: Not logged in
   - ADVICE:
     - Try :GkeepLogin
 - INFO: Log file: /home/david/.cache/nvim/gkeep.log

Additional context I have tried both disabling 2FA and using an App Password, but I still have the same problem.

I created a minimal vim.init and loaded it with nvim -u ~/.config/nvim/gkeep.vim, so there shouldn't be any other configuration interfering.

The gkeep.log file is empty.

kaddkaka avatar Sep 16 '22 05:09 kaddkaka

I just added a list_notes.py script that calls gpsoauth and then gkeepapi directly, so that you can test the login and sync process outside of the plugin. While creating it, I noticed that I was getting the same errors as you. The login has unfortunately been quite flaky in the past, due to Google changing their API (it's not a public API, so nothing is officially supported). I've reported the login issues in gpsoauth: https://github.com/simon-weber/gpsoauth/issues/48. Hopefully they'll be able to figure out the root issue

stevearc avatar Sep 20 '22 11:09 stevearc

list_notes.py gives the same error. Hopefully someone else can reproduce and figure out the problem. I commented in the gpsoauth issue too.

kaddkaka avatar Oct 17 '22 20:10 kaddkaka

Same error, I think that two factor authentication may causing this error and I'm afraid that I don't want to disable it.

asdf8601 avatar Nov 06 '22 16:11 asdf8601

Same error... I tried disabling the 2FA and then got the following error:

Unknown error logging in; please report an issue on github. API error: ('UNKNOWN_ERR', None)

Which is honestly stranger.

Bernadetten avatar Dec 25 '22 22:12 Bernadetten

Same here. The app password doesn't work. image

zabeiua avatar Jan 15 '23 20:01 zabeiua

It's a shame this issue still resides. I wish I had time/skill to look at it.

Does anyone know of a good alternative? - I am looking for something to manage tasks in Neovim and on the phone, with synchronization.

MikaelElkiaer avatar Jan 16 '23 08:01 MikaelElkiaer

It's a shame this issue still resides. I wish I had time/skill to look at it.

Does anyone know of a good alternative? - I am looking for something to manage tasks in Neovim and on the phone, with synchronization.

vimwiki with vimwiki-sync and check some phone app ideas at https://www.reddit.com/r/vim/comments/fesy87/vimwiki_on_the_move/

zabeiua avatar Jan 16 '23 12:01 zabeiua