ciur / papermerge

Open Source Document Management System for Digital Archives (Scanned Documents)
https://papermerge.com
Apache License 2.0
2.5k stars 264 forks source link

Unable to upload most PDFs #309

Open adamklaff opened 3 years ago

adamklaff commented 3 years ago

Description I am able to upload some PDFs, but most times when I upload, the upload never completes and I get an error. This occurs when I drag and drop onto any upload window or use the "upload" button. Sometimes I get an "error-missing input file" error in the upload modal.

Expected I expect the upload to complete.

Actual Upload doesn't complete. I get the following errors in the JS console:

Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at XMLHttpRequest.<anonymous> (papermerge.js:54)
(anonymous) @ papermerge.js:54

Failed to load resource: net::ERR_CONNECTION_ABORTED

Info:

ciur commented 3 years ago

@adamklaff, did you use docker image provided by linuxserver.io?

adamklaff commented 3 years ago

Yes. Should I post there? I realize you ask that up front but I wasn't sure how that image could cause this problem. Thanks.

On Mon, Mar 1, 2021 at 3:24 AM Eugen Ciur notifications@github.com wrote:

@adamklaff https://github.com/adamklaff, did you use docker image provided by linuxserver.io?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ciur/papermerge/issues/309#issuecomment-787873881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARQJGKLKOIN3BG4N4DSVJLTBN2N3ANCNFSM4XZSCOZA .

dmpavlidis commented 3 years ago

I have the same issue. Is there any update? I'm using docker (official image) (Papermerge 2.0rc48) and Edge Chromium.

ciur commented 3 years ago

I cannot reproduce :( Please help me with more information about the issue. Does issue occur for all PDFs ? For specific ones ? For Windows OS only? Is it same for Firefox browser ? What about jpeg, png files - do they upload successfully ?

dmpavlidis commented 3 years ago

I cannot reproduce :( Please help me with more information about the issue. Does issue occur for all PDFs ? For specific ones ? For Windows OS only? Is it same for Firefox browser ? What about jpeg, png files - do they upload successfully ?

Hi, apologies for the late reply, I have missed the notification.

These are 2 PDFs that won't upload:

https://1drv.ms/u/s!AvUWNyiOClNSiN9h9c6uz_V3yN8fsA?e=hzoeQ3

Network console logs from firefox: network console logs.txt

They are both scanned, but at the same time other scanned documents are uploading just fine.

Same issue on Edge Chromium and Firefox (latest versions)

barbados-clemens commented 3 years ago

I just came across this myself and it was because it was a password protected PDF. It doesn't seem to be the same as others are seeing. But providing an api response for 500 error and surface in the UI might be helpful.

Dzheky commented 3 years ago

Same issue, getting 500 for some PDFs, but some uploads fine, can't find the pattern though

Dominik-Koenig commented 2 years ago

I started using papermerge today and I had the same issue. But this error does not seem to be bound to the pdf file itself, for me it happened when I dropped multiple files to papermerge, some uploaded, some didn't. However, if I dropped the files again as a single file the issue did not appear. Maybe it's an issue with the file sizes or request size?

System: MacOS Monterey Browser: Firefox 94