mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-26 04:25:54 +03:00
[GH-ISSUE #294] REST API doc upload, python requests issue. #237
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jjkonway on GitHub (Feb 3, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/294
Originally assigned to: @ciur on GitHub.
Uploading pdf to inbox via REST api and python requests does not trigger the worker. I get a response 200, and The document appears in the inbox, and the log shows STARTED OCR for each page. but it never actually COMPLETED OCR.
Drag and drop into inbox works fine.
This is with gunicorn and nginx, ..if i run the server through manage.py runserver, python request triggers the worker normally.
........
But, if I use CURL to upload the pdf, it works fine and triggers the worker as it should .
Any thoughts?
thanks.
Info:
Unrelated:
is there any possibility to upload meta data with the document down the line? Or any suggestions to where to look in the code regarding accessing or editing the metadata in python?
@ciur commented on GitHub (Feb 7, 2021):
@jjkonway
could you please post python requests based script here so that I can troubleshoot the issue?
This feature will be implemented in later versions, when more sophisticated REST API will be introduced.
Sure, metadata is added/edited in this view. As comments mention there, metadata is stored per Page (that is when end user saves metadata on the document, that metadata is actually saved on the first page of respective document).
@jjkonway commented on GitHub (Feb 22, 2021):
Nevermind! it was my code. workng now thanks