Sync error "Unexpected token d in JSON at position 4

Operating system

Linux

Joplin version

2.14.20

Desktop version info

Desktop app version : 2.14.20
Iphone app version : 12.14.6

Sync target

Nextcloud

Editor

Markdown Editor

What issue do you have?

Hello,

I have a sync error on my desktop app and my iphone app:

  • For desktop, the error is is "11:39:34: Synchronizer: SyntaxError: On file 1f078c603cae43d185d508c78042dd80.md: Unexpected non-whitespace character after JSON at position 4
    at JSON.parse ()"
  • For iphone :
    Fetched item: 4/26.
    Completed 16/04/2024 11:50 (4s)
    Last error: Syntaxerror: On file 1f078c603cae43d185d508c78042dd80.md: JSON Parse error: Unexpected token: d

Previously:

  • I had another missing error (based on missing type), and I corrected it by deleting EOL characters in end of note files (included the one 1f078c603cae43d185d508c78042dd80.md) in notes stored in Nextcloud
  • Then I obtained the non-white character error in my Desktop app and token error in my iphone app
  • I updated the version of Desktop Joplin with no resolution

Maybe a file corruption?
Other ideas ?

Best regards,

Screenshots

Log file

sync-error.txt (6.63 KB)

This is one of your notes. Something happened to it.

You could copy the 1f078..dd80.md file to a new name and open it in a text editor. Perhaps make a new note and copy from the text editor back into Joplin and then deleting the bad one from within Joplin.

Others may have better ideas.

I deleted the bad one, and it correctly synchronize now. I hope it will continue to work.

Make sure you don't open any of the Joplin files from Nextcloud as that would corrupt the file (even if you don't make any change), just in case that was the issue.