streetwriters / notesnook

A fully open source & end-to-end encrypted note taking alternative to Evernote.
https://notesnook.com/
GNU General Public License v3.0
10.18k stars 628 forks source link

Note says errors in 9 attachments but they work fine and rechecking doesn't work #3644

Open streetwriters[bot] opened 1 year ago

streetwriters[bot] commented 1 year ago

https://monograph.notesnook.com/65357253f1f1f100624e4e50/

This note specifically. Could it be related to publishing? Could it be related to the fact that I copy pasted the images into the document (making all the filenames just "image"?

I tried rechecking. It seems to work but then a few seconds later, it goes back to its previous state.

Device information: App version: 2.6.7-0aac29c-desktop OS: Windows 10 64-bit Browser: Electron 25.8.1 Pro: true

thecodrr commented 1 year ago

Could it be related to the fact that I copy pasted the images into the document (making all the filenames just "image"?

Most probably. You can open the attachment manager and hover over the errored attachments to see what the error is.

mufeedali commented 1 year ago

Could it be related to the fact that I copy pasted the images into the document (making all the filenames just "image"?

Most probably. You can open the attachment manager and hover over the errored attachments to see what the error is.

Oh, just saw that! File length mismatch... it works when i download the same from the attachment manager and then re-upload, i.e using the download and the reupload option in the same right click menu of the attachment.

mufeedali commented 1 year ago

For now, I've resolved the issue for myself by individually downloading and re-uploading each attachment

thecodrr commented 1 year ago

File length mismatch usually means that the file that was uploaded is incomplete. It is weird that you fixed it by downloading and reuploading the same file. Did you check the file after downloading? Is it missing any data?

mufeedali commented 1 year ago

Did you check the file after downloading? Is it missing any data?

Yes, I did check, no missing data. Even the hashes matched (which makes sense, because otherwise the reupload wouldn't work either since Notesnook does check that).

In hindsight, I should not just have re-uploaded all of them, I should have kept one of them in that state to help with debugging. :(