[GH-ISSUE #309] Unable to upload most PDFs #246

Open
opened 2026-02-25 21:31:31 +03:00 by kerem · 8 comments
Owner

Originally created by @adamklaff on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/309

Originally assigned to: @ciur on GitHub.

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:

  • OS: Windows 10 and Mac OS Catalina
  • Chrome
  • Database Postgres 13.2
  • Papermerge Version 1.5.5
Originally created by @adamklaff on GitHub (Feb 18, 2021). Original GitHub issue: https://github.com/ciur/papermerge/issues/309 Originally assigned to: @ciur on GitHub. **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:** - OS: Windows 10 and Mac OS Catalina - Chrome - Database Postgres 13.2 - Papermerge Version 1.5.5
Author
Owner

@ciur commented on GitHub (Mar 1, 2021):

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

<!-- gh-comment-id:787873881 --> @ciur commented on GitHub (Mar 1, 2021): @adamklaff, did you use docker image provided by linuxserver.io?
Author
Owner

@adamklaff commented on GitHub (Mar 2, 2021):

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
.

<!-- gh-comment-id:789108382 --> @adamklaff commented on GitHub (Mar 2, 2021): 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> > . >
Author
Owner

@dmpavlidis commented on GitHub (Mar 14, 2021):

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

<!-- gh-comment-id:798954164 --> @dmpavlidis commented on GitHub (Mar 14, 2021): I have the same issue. Is there any update? I'm using docker (official image) (Papermerge 2.0rc48) and Edge Chromium.
Author
Owner

@ciur commented on GitHub (Mar 20, 2021):

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 ?

<!-- gh-comment-id:803260132 --> @ciur commented on GitHub (Mar 20, 2021): 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 ?
Author
Owner

@dmpavlidis commented on GitHub (Apr 16, 2021):

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)

<!-- gh-comment-id:821066291 --> @dmpavlidis commented on GitHub (Apr 16, 2021): > 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](https://github.com/ciur/papermerge/files/6324147/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)
Author
Owner

@barbados-clemens commented on GitHub (Apr 17, 2021):

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.

<!-- gh-comment-id:821751933 --> @barbados-clemens commented on GitHub (Apr 17, 2021): 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.
Author
Owner

@Dzheky commented on GitHub (Jul 26, 2021):

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

<!-- gh-comment-id:887104159 --> @Dzheky commented on GitHub (Jul 26, 2021): Same issue, getting 500 for some PDFs, but some uploads fine, can't find the pattern though
Author
Owner

@Dominik-Koenig commented on GitHub (Nov 10, 2021):

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

<!-- gh-comment-id:965688566 --> @Dominik-Koenig commented on GitHub (Nov 10, 2021): 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#246
No description provided.