GoogleCloudPlatform / dlp-pdf-redaction

This solution provides an automated, serverless way to redact sensitive data from PDF files using Google Cloud Services like Data Loss Prevention (DLP), Cloud Workflows, and Cloud Run.
Apache License 2.0
50 stars 25 forks source link

500 server error #9

Closed TaylorsWorkBits closed 2 years ago

TaylorsWorkBits commented 2 years ago

BUG: Single Page PDF's fail on Splitter phase. Description: i get a 500 error anytime i upload a single page, multiple page works good.

Error 2022-07-07T21:54:40.463871ZPOST500653 B160 msGoogleCloudWorkflows; (+https://cloud.google.com/workflows/docs) https://pdf-splitter-98ea-buxissg3zq-uc.a.run.app/ Default 2022-07-07T21:54:46.046341Z[2022-07-07 21:54:46 +0000] [1] [INFO] Starting gunicorn 20.1.0 Default 2022-07-07T21:54:46.047609Z[2022-07-07 21:54:46 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1) Default 2022-07-07T21:54:46.047657Z[2022-07-07 21:54:46 +0000] [1] [INFO] Using worker: gthread Default 2022-07-07T21:54:46.079066Z[2022-07-07 21:54:46 +0000] [2] [INFO] Booting worker with pid: 2 Default 2022-07-07T21:57:12.792512ZDownloading file: gs://pdf-input-bucket-98ea/nospacename.pdf Default 2022-07-07T21:57:12.908398ZInput file downloaded from GCS to 970778b2-3ef6-4a0b-b7d3-b623f3c297fa Default 2022-07-07T21:57:12.935872Zerror: Unable to get page count. Default 2022-07-07T21:57:12.935893ZSyntax Error: Gen inside xref table too large (bigger than INT_MAX) Default 2022-07-07T21:57:12.935902ZSyntax Error: Couldn't find trailer dictionary Default 2022-07-07T21:57:12.935911ZSyntax Error: Gen inside xref table too large (bigger than INT_MAX) Default 2022-07-07T21:57:12.935919ZSyntax Error: Couldn't find trailer dictionary Default 2022-07-07T21:57:12.935927ZSyntax Error: Couldn't read xref table Default

felimartina commented 2 years ago

Hey @TaylorsWorkBits, I've been unable to reproduce the issue. I've tried multiple single-page PDF files and they all worked just fine. Would you be able to provide a sample file that would help me reproduce the bug?

TaylorsWorkBits commented 2 years ago

Hey Felipe i have narrowed it down to any pdf with docusign meta data. I belive this would be a feature not a bug, we can close this.