Error during the syncing with yandex

Problem

Happens in the middle or work, initially mail is working fine.

Context

Steps to reproduce the behavior:

  1. Just work some time
  2. Try any action
  3. Ger error about syncing – synchronization error with yandex.ru
  4. See error. Close app, start again and you can work with it for some time

Email Provider

Yandex

Setup

  • OS and Version: macOS 10.15.4 (19E287)
  • Mailspring Version: 1.7.8
Mailspring Version: 1.7.8-13635bcf
Platform: darwin
Account State: sync_error
Account Provider: yandex
IMAP Server: imap.yandex.com
SMTP Server: smtp.yandex.com
*** in mailsync exceptions::logCurrentExceptionWithStackTrace()
*** in mailsync runBackgroundSyncWorker()
*** in mailsync main::$_6::operator()() const
*** in mailsync void* __thread_proxy(void*)
*** in mailsync thread_start()

7266 [2020-06-11 01:40:28.909] [main] [info] Identity created at 1579206750 - using ID Schema 1
7266 [2020-06-11 01:40:28.910] [main] [info] ------------- Starting Sync (ovgeorge@yandex.ru) ---------------
7266 [2020-06-11 01:40:28.915] [metadata] [info] Metadata delta stream starting...
7266 [2020-06-11 01:40:32.916] [background] [info] Marking all folders as busy
7266 [2020-06-11 01:40:32.917] [background] [info] Syncing folder list...
7266 [2020-06-11 01:40:33.124] [background] [info] Syncing folder list...
7266 [2020-06-11 01:40:33.374] [foreground] [info] syncFolderUIDRange for INBOX, UIDs: 23201 - 23341, Heavy: false
7266 [2020-06-11 01:40:33.405] [background] [info] syncFolderUIDRange for &BBAEQARFBDgEMg-, UIDs: 9535 - 10285, Heavy: true
7266 [2020-06-11 01:40:33.446] [foreground] [info] - remote=101, local=101
7266 [2020-06-11 01:40:33.449] [foreground] [info] Idling on folder INBOX
7266 [2020-06-11 01:40:43.912] [metadataExpiration] [info] Scanning for expired metadata
7266 [2020-06-11 01:40:43.912] [metadataExpiration] [info] -- Will wake for next expiration in 7200sec
7266 [2020-06-11 01:40:48.715] [calContacts] [critical]

*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"https://yandex.ru/","key":"Stream error in the HTTP/2 framing layer","retryable":false,"what":"std::exception"}

7266 [2020-06-11 01:40:48.715] [calContacts] [critical] *** Stack trace (line numbers are approximate):
*** in mailsync ValidateRequestResp(CURLcode, void*, string)
*** in mailsync PerformRequest(void*)
*** in mailsync DAVWorker::performXMLRequest(string, string, string)
*** in mailsync DAVWorker::resolveAddressBook()
*** in mailsync DAVWorker::runContacts()
*** in mailsync DAVWorker::run()
*** in mailsync runCalContactsSyncWorker()
*** in mailsync main::$_7::operator()() const
*** in mailsync void* __thread_proxy(void*)
*** in mailsync thread_start()

7266 [2020-06-11 01:40:48.715] [calContacts] [error] Suspending sync for 90min - unlikely a retry would resolve this error.
7266 [2020-06-11 01:41:16.793] [background] [info] - remote=748, local=137
7266 [2020-06-11 01:41:16.814] [background] [critical]

*** Mailspring Sync
*** A JSON exception occurred during program execution:
*** [json.exception.type_error.316] invalid UTF-8 byte at index 1: 0xA3

7266 [2020-06-11 01:41:16.855] [background] [critical] *** Stack trace (line numbers are approximate):
*** in mailsync exceptions::logCurrentExceptionWithStackTrace()
*** in mailsync runBackgroundSyncWorker()
*** in mailsync main::$_6::operator()() const
*** in mailsync void* __thread_proxy(void*)
*** in mailsync thread_start()

(Originally posted by ovgeorge on GitHub.)

I’d like to highlight that this seems to be the most important part of the traceback:

*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"[https://yandex.ru/","key":"Stream](https://yandex.ru/%22,%22key%22:%22Stream) error in the HTTP/2 framing layer","retryable":false,"what":"std::exception"}

Any update on this error till now? Actually I’trying to use mailspring years ago, while this issue remains all the same even in the latest version 1.10.0, this issue blocks me from using and spreading to others:

  • Problem:

Initially, works fine;
Minutes later, stuck;
Restart ,the same;

(btw, I do have many Chinese characters mails, the json en\de-code malfunction?)

  • Error message as below:

9926 [2022-03-12 23:47:37.456] [foreground] [info] – UID (1550966650 to 1550980954)
49926 [2022-03-12 23:47:37.466] [foreground] [info] Connection does not support idling. Locking until more to do…
49926 [2022-03-12 23:47:38.361] [background] [info] Sync loop deleting unlinked messages with phase 2.
49926 [2022-03-12 23:47:38.362] [background] [info] Sync loop complete.
49926 [2022-03-12 23:47:51.233] [metadataExpiration] [info] Scanning for expired metadata
49926 [2022-03-12 23:47:51.233] [metadataExpiration] [info] – Will wake for next expiration in 7200sec
49926 [2022-03-12 23:47:55.979] [calContacts] [critical]


*** Mailspring Sync
*** A JSON exception occurred during program execution:
*** [json.exception.type_error.316] invalid UTF-8 byte at index 285: 0xB2


49926 [2022-03-12 23:47:56.876] [calContacts] [critical] *** Stack trace (line numbers are approximate):
*** in mailsync exceptions::logCurrentExceptionWithStackTrace()
*** in mailsync nlohmann::detail::serializer::dump_escaped(const string&, bool)
*** in mailsync nlohmann::detail::serializer::dump(nlohmann::basic_json const&, bool, bool, unsigned int, unsigned int)
*** in mailsync nlohmann::detail::serializer::dump(nlohmann::basic_json const&, bool, bool, unsigned int, unsigned int)
*** in mailsync nlohmann::basic_json::dump(int, char, bool, nlohmann::detail::error_handler_t) const
*** in mailsync exceptions::logCurrentExceptionWithStackTrace()
*** in mailsync runCalContactsSyncWorker()
*** in mailsync main::$_7::operator()() const
*** in mailsync void* __thread_proxy(void*)
*** 0x7fff2040d443 thread_start()