Skip to content

[Bug]: Evernote Login Failure (Windows 11) #118

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

Closed
fowlesp opened this issue Jan 23, 2025 · 8 comments
Closed

[Bug]: Evernote Login Failure (Windows 11) #118

fowlesp opened this issue Jan 23, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@fowlesp
Copy link

fowlesp commented Jan 23, 2025

evernote-backup version

1.9.3

What OS are you using?

Windows

OS Version / Linux distribution

11

Bug description

Using 'evernote-backup.exe -v - init-db --user --password crashes with the following

Logging in to Evernote...
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 158, in init_db
File "evernote_backup\cli_app.py", line 38, in init_db
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 772, in recv_authenticateLongSession
thrift.Thrift.TApplicationException:

Please investigate and fix

Log excerpt

@fowlesp fowlesp added the bug Something isn't working label Jan 23, 2025
@derfrankie
Copy link

Just have the same issue on Qnap

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 158, in init_db
File "evernote_backup/cli_app.py", line 38, in init_db
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 772, in recv_authenticateLongSession
thrift.Thrift.TApplicationException: <exception str() failed>

and on Mac OS Machines with

Traceback (most recent call last):
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/cli.py", line 305, in main
cli()
~~~^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/cli.py", line 158, in init_db
cli_app.init_db(
~~~~~~~~~~~~~~~^
database=database,
^^^^^^^^^^^^^^^^^^
...<8 lines>...
network_retry_count=network_retry_count,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/cli_app.py", line 38, in init_db
auth_token = get_auth_token(
auth_user,
...<5 lines>...
network_retry_count,
)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/cli_app_auth.py", line 56, in get_auth_token
return evernote_login_password(
auth_user,
...<2 lines>...
network_retry_count,
)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/cli_app_auth_password.py", line 56, in evernote_login_password
auth_res = auth_client.login(auth_user, auth_password)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_auth.py", line 27, in login
return self.user_store.authenticateLongSessionV2(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
username=username,
^^^^^^^^^^^^^^^^^^
...<7 lines>...
supportsBusinessOnlyAccounts=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client.py", line 138, in wrapper
return target_method_retry(*args, **kwargs)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_util.py", line 28, in wrapper
return fun(*args, **kwargs)
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_classes.py", line 294, in authenticateLongSessionV2
return self.recv_authenticateLongSession()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.13/site-packages/evernote/edam/userstore/UserStore.py", line 772, in recv_authenticateLongSession
raise x
thrift.Thrift.TApplicationException: <exception str() failed>

@Josema
Copy link

Josema commented Mar 6, 2025

Same problem here, using windows.

@wandermyz
Copy link

wandermyz commented Mar 22, 2025

Same using macOS 15.2, evernote-backup, version 1.9.3

FYI,
This thrift.Thrift.TApplicationException: <exception str() failed> actually says
Invalid method name: 'authenticateLongSessionV2'
if you print x.__str__().decode('utf-8')

@bryanb7313
Copy link

Same problem using Windows 11, returns

 File "C:\Users\bryan\pipx\venvs\evernote-backup\Lib\site-packages\evernote\edam\userstore\UserStore.py", line 772, in recv_authenticateLongSession
    raise x
thrift.Thrift.TApplicationException: <exception str() failed>

@came
Copy link

came commented Mar 28, 2025

:(

@derfrankie
Copy link

It’s actually not a bug. The token the original author used is expired - you have to get your own. Contact Evernote for access to the api and they will give you the credentials to use to generate your own token - after that it works fine

@bryanb7313
Copy link

Not exactly, but that led me to look at it again and there is actually a logged issue #109 on this

You have to use --oauth, worked for me.

@vzhd1701
Copy link
Owner

vzhd1701 commented Apr 6, 2025

Fixed in the new version. OAuth will be used by default now, username/password login API is disabled by Evernote.

@vzhd1701 vzhd1701 closed this as completed Apr 6, 2025
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

7 participants