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

gkeepapi.exception.LoginException: ('BadAuthentication', None) #38

Closed
LucasLake opened this issue Sep 19, 2023 · 4 comments
Closed

gkeepapi.exception.LoginException: ('BadAuthentication', None) #38

LucasLake opened this issue Sep 19, 2023 · 4 comments

Comments

@LucasLake
Copy link

I love Keep2Todoist! I've been using it for almost a year without any issues.
Since last week, without performing any software updates, I'm getting the following error:

python3 app.py
2023-09-19 22:57:04 configManager-INFO: validating configuration with schema 'config.schema.yaml'
2023-09-19 22:57:04 configManager-INFO: schema validation passed 👍
2023-09-19 22:57:04 configManager-INFO: configuration validation passed 👍
2023-09-19 22:57:04 configManager-INFO: updated config: config.yaml
Traceback (most recent call last):
  File "/config/notebooks/keep2todoist/app/app.py", line 169, in <module>
    keep.login(configManager.config['google_username'], configManager.config['google_password'], device_id='3ee9002270d00157')
  File "/usr/local/lib/python3.11/dist-packages/gkeepapi/__init__.py", line 695, in login
    ret = auth.login(username, password, device_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

I tried re-installing the packages, pulling a new version from Git, rebuilding Python, updating Python, restarting Jupyter, rebooting HomeAssistant (which runs Jupyter), changing the GKeepApi version to 0.13.6, creating a new Google App password, but unfortunately nothing works. Even putting a false password in config.yaml results in the same error.

I have no idea what to try next.

Can anybody be of any help?

@flecmart
Copy link
Owner

Hey there,

Just a quick response without having the time to further investigate at the moment: Maybe related to #29?

If you have the chance to try the prebuilt docker image you can eliminate any version or dependency conflicts.

@LucasLake
Copy link
Author

Hey flecmart,

Apologies for the slow response. I had no experience with Docker so it took me a bit of time to set it up.

Indeed, a Docker installation does solve the issue. Tnx!
Dockers is more cumbersome for me though as I need to rent a separate small AWS server.
Is there any possibility for a fix in Jupyter? My Jupyter runs on Home Assistant.

@flecmart
Copy link
Owner

Hey again,

okay my guess is something changed in your home assistant environment then at some point. What are you using? HassOS?

I think your issue is related to this: simon-weber/gpsoauth#48 (comment)

Of course you can also make it work without docker allthough it might be complicated depending on your environment. It needs a certain version of openssl installed and you need to make sure that you have the current requirements.txt from this repo using urllib3<2.

@flecmart
Copy link
Owner

flecmart commented Oct 4, 2023

I improved the auth process to google with release https://github.com/flecmart/keep2todoist/releases/tag/v1.5.0
I close the issue because I could not reproduce the problem within my dev environment.

@flecmart flecmart closed this as completed Oct 4, 2023
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

2 participants