hass-google_keep icon indicating copy to clipboard operation
hass-google_keep copied to clipboard

BadAuthentication with app-password

Open michaelblight opened this issue 1 year ago • 4 comments

I assume this is still working for some people, but I'm getting an authentication error. I've tried an app specific password as mentioned in this issue but that is giving me the error below:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 286, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/gkeep/__init__.py", line 71, in setup
    login_success = keep.login(username, password)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 695, in login
    ret = auth.login(username, password, device_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

I'm using HAOS 2023.6.2 and my google account has two-factor authentication.

michaelblight avatar Jul 24 '23 03:07 michaelblight

I'm experiencing this issue as well. Using 2023.8.3.

konradjonsson avatar Sep 08 '23 19:09 konradjonsson

same here:

Logger: homeassistant.setup
Source: custom_components/gkeep/__init__.py:71
Integration: gkeep (documentation)
First occurred: 17:05:39 (1 occurrences)
Last logged: 17:05:39

Error during setup of component gkeep
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/gkeep/__init__.py", line 71, in setup
    login_success = keep.login(username, password)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 695, in login
    ret = auth.login(username, password, device_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

this happens with or without 2FA

HappyGitCake avatar Sep 14 '23 15:09 HappyGitCake

Same here

teadragon7 avatar Jan 15 '24 01:01 teadragon7

I used keyring and tokens to make it work again. How can I create a pull request?

StefanoGiu avatar Feb 13 '24 13:02 StefanoGiu