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

[Bug]: Unable to auth or re-auth with Evernote account #103

Open
ach1000 opened this issue Aug 5, 2024 · 3 comments
Open

[Bug]: Unable to auth or re-auth with Evernote account #103

ach1000 opened this issue Aug 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ach1000
Copy link

ach1000 commented Aug 5, 2024

evernote-backup version

Tested with 1.9.2 and 1.9.3

What OS are you using?

Linux

OS Version / Linux distribution

Debian (12 / Bookworm)

Bug description

My nightly crontab to backup my Evernote notes failed with:

Reading database en_backup.db...
Authorizing auth token, evernote backend...
Authentication token expired or revoked!

Trying to init-db ore-auth I get:

Traceback (most recent call last):
  File "evernote_backup/cli.py", line 305, in main
  File "click/core.py", line 1157, in __call__
  File "click/core.py", line 1078, in main
  File "click/core.py", line 1688, in invoke
  File "click/core.py", line 1434, in invoke
  File "click/core.py", line 783, in invoke
  File "evernote_backup/cli.py", line 291, in reauth
  File "evernote_backup/cli_app.py", line 80, in reauth
  File "evernote_backup/cli_app_auth.py", line 56, in get_auth_token
  File "evernote_backup/cli_app_auth_password.py", line 56, in evernote_login_password
  File "evernote_backup/evernote_client_auth.py", line 27, in login
  File "evernote_backup/evernote_client.py", line 138, in wrapper
  File "evernote_backup/evernote_client_util.py", line 28, in wrapper
  File "evernote_backup/evernote_client_classes.py", line 294, in authenticateLongSessionV2
  File "evernote/edam/userstore/UserStore.py", line 781, in recv_authenticateLongSession
evernote.edam.error.ttypes.EDAMSystemException: EDAMSystemException(message=None, errorCode=8, rateLimitDuration=None)

My account is protected with 2FA, but the exception occurs after entering username/password; we don't get as far as requesting the 2FA token.

Can re-produce with the latest binary release.

Log excerpt

No response

@ach1000 ach1000 added the bug Something isn't working label Aug 5, 2024
@FabThelead
Copy link

FabThelead commented Aug 6, 2024

A fix is given here:
#101

@Houska1
Copy link
Contributor

Houska1 commented Aug 21, 2024

I'm not the developer, but I've proposed an edit to the README documentation to clarify the situation as a stopgap. See #109. Due to Evernote policies, OAuth is now essentially required and should probably becomes default behaviour, with username and pwd passed from command line or solicited by evernote-backup and sent to Evernote servers an optional alternate (for backend China, for instance).

@huyz
Copy link

huyz commented Aug 30, 2024

Try evernote-backup reauth --oauth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants