Skip to content

[Bug]:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xec in position 1: invalid continuation byte #134

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
decaMinCow opened this issue Apr 17, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@decaMinCow
Copy link

decaMinCow commented Apr 17, 2025

evernote-backup version

1.11.0

What OS are you using?

MacOS

OS Version / Linux distribution

13.2.1

Bug description

WARNING: Aborting, please wait...

ERROR: Unknown exception
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/cli.py", line 84, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/cli.py", line 237, in sync
    cli_app.sync(
    ~~~~~~~~~~~~^
        database=database,
        ^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
        token=token,
        ^^^^^^^^^^^^
    )
    ^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/cli_app.py", line 143, in sync
    note_synchronizer.sync()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 235, in sync
    self._download_scheduled_notes(notes_to_sync)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 400, in _download_scheduled_notes
    self._process_download_chunk(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        executor, notes_bar, notes_to_sync_chunk
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 440, in _process_download_chunk
    raise f_exc
  File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 142, in __call__
    note = self.download_note(note_id)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 154, in download_note
    return self._note_client.get_note(note_id)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_sync.py", line 48, in get_note
    note = self.note_store.getNote(
        note_guid, True, True, True, True  # noqa: WPS425
    )
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_api_http.py", line 147, in wrapper
    return func(*args, **kwargs)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_api_tokenized.py", line 1621, in getNote
    return self._client.getNote(
           ~~~~~~~~~~~~~~~~~~~~^
        authenticationToken=self.authenticationToken,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        withResourcesAlternateData=withResourcesAlternateData,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/notestore/NoteStore.py", line 4389, in getNote
    return self.recv_getNote()
           ~~~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/notestore/NoteStore.py", line 4413, in recv_getNote
    result.read(iprot)
    ~~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/notestore/NoteStore.py", line 14860, in read
    self.success.read(iprot)
    ~~~~~~~~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/type/ttypes.py", line 4808, in read
    iprot.skip(ftype)
    ~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/thrift/protocol/TProtocol.py", line 207, in skip
    self.readString()
    ~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/thrift/protocol/TProtocol.py", line 185, in readString
    return binary_to_str(self.readBinary())
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/thrift/compat.py", line 40, in binary_to_str
    return bin_val.decode('utf8')
           ~~~~~~~~~~~~~~^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xec in position 1: invalid continuation byte
@decaMinCow decaMinCow added the bug Something isn't working label Apr 17, 2025
@vzhd1701
Copy link
Owner

Dos this happen on each sync run? Could you please provide full log running it in verbose mode?

evernote-backup -v sync

@decaMinCow
Copy link
Author

decaMinCow commented Apr 17, 2025

CRITICAL: Unknown exception caught while downloading note 'ChatGPT 注册'!
WARNING: Aborting, please wait...
DEBUG: Finished downloading note [64fc37ee-b083-4ab5-b228-70c7dc420223]
DEBUG: Memory consumed: 0.0% [LIMIT 256 MB]
DEBUG: Finished downloading note [64a51499-4376-4632-9e9f-0c0fe6568a33]
DEBUG: Memory consumed: 0.0% [LIMIT 256 MB]
DEBUG: Finished downloading note [6506ee6e-a1d1-483f-998b-99b8c5cd0bac]
DEBUG: Memory consumed: 0.0% [LIMIT 256 MB]
DEBUG: Finished downloading note [65915f17-285e-49fb-a0af-7b636bbb2ff8]
DEBUG: Memory consumed: 0.0% [LIMIT 256 MB]
DEBUG: Finished downloading note [65b10d93-889b-4b44-b32c-9faf8b1d4fdf]
DEBUG: Memory consumed: 0.0% [LIMIT 256 MB]
ERROR: Unknown exception
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/cli.py", line 84, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/cli.py", line 237, in sync
    cli_app.sync(
    ~~~~~~~~~~~~^
        database=database,
        ^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
        token=token,
        ^^^^^^^^^^^^
    )
    ^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/cli_app.py", line 143, in sync
    note_synchronizer.sync()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 235, in sync
    self._download_scheduled_notes(notes_to_sync)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 400, in _download_scheduled_notes
    self._process_download_chunk(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        executor, notes_bar, notes_to_sync_chunk
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 440, in _process_download_chunk
    raise f_exc
  File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 142, in __call__
    note = self.download_note(note_id)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/note_synchronizer.py", line 154, in download_note
    return self._note_client.get_note(note_id)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_sync.py", line 48, in get_note
    note = self.note_store.getNote(
        note_guid, True, True, True, True  # noqa: WPS425
    )
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_api_http.py", line 147, in wrapper
    return func(*args, **kwargs)
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote_backup/evernote_client_api_tokenized.py", line 1621, in getNote
    return self._client.getNote(
           ~~~~~~~~~~~~~~~~~~~~^
        authenticationToken=self.authenticationToken,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        withResourcesAlternateData=withResourcesAlternateData,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/notestore/NoteStore.py", line 4389, in getNote
    return self.recv_getNote()
           ~~~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/notestore/NoteStore.py", line 4413, in recv_getNote
    result.read(iprot)
    ~~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/notestore/NoteStore.py", line 14860, in read
    self.success.read(iprot)
    ~~~~~~~~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/evernote/edam/type/ttypes.py", line 4808, in read
    iprot.skip(ftype)
    ~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/thrift/protocol/TProtocol.py", line 207, in skip
    self.readString()
    ~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/thrift/protocol/TProtocol.py", line 185, in readString
    return binary_to_str(self.readBinary())
  File "/opt/homebrew/Cellar/evernote-backup/1.11.0/libexec/lib/python3.13/site-packages/thrift/compat.py", line 40, in binary_to_str
    return bin_val.decode('utf8')
           ~~~~~~~~~~~~~~^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xec in position 1: invalid continuation byte

@vzhd1701
Copy link
Owner

Could you please share that note with vzhd1701@gmail.com inside Evernote?

@vzhd1701
Copy link
Owner

Should be fixed in the new 1.12.0 version

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

2 participants