Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocr scan times out quickly #247

Closed
saidsef opened this issue May 11, 2024 · 1 comment · Fixed by #248
Closed

ocr scan times out quickly #247

saidsef opened this issue May 11, 2024 · 1 comment · Fixed by #248
Assignees
Labels
enhancement New feature or request

Comments

@saidsef
Copy link
Owner

saidsef commented May 11, 2024

Problem Statement:

Since the upgrade to Apache Tika 2.x.x PDFs and Images ocr times out quickly and then throws error silently in the server side.

This might be due to missing client header.

Proposed Solution:

  • Add client header X-Tika-OCRTimeout and set it to 30 seconds
  • Add client header X-Tika-PDFocrStrategy to auto so that the server decides if ocr should be forced

Actions:

  • Update client UI application to send headers to sever along with the payload
@saidsef saidsef added the enhancement New feature or request label May 11, 2024
@saidsef saidsef self-assigned this May 11, 2024
saidsef added a commit that referenced this issue May 11, 2024
saidsef added a commit that referenced this issue May 11, 2024
@saidsef
Copy link
Owner Author

saidsef commented May 11, 2024

Since X-Tika-PDFocrStrategy is set, there is no need for X-Tika-OCRTimeout

saidsef added a commit that referenced this issue May 11, 2024
* chore: update tika ocr and pdf scannning

This Closes #247

* chore: update from 7071 to 8070
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant