Import over papermerge-cli not working
Hi, Thank you for providing such a great tool. Unfortunately I can't figure out how to import my documents. My documents are sorted in an annual folder structure. And inside each folder there are subfolders as well.
My steps I tried so far:
- start power shell with ssh and connect with the docker container:
docker exec -it papermerge-worker-1 bash - install Python pip:
sudo dnf install python3-pip - install papermerge-cli:
pip install papermerge-cli - Login to the UI with my user (admin account does not work), F12 Devtools, network and grap the bearer token.
- back in power shell start import:
papermerge-cli --host http://nas:12000/api/ --token MYTOKEN import ./mnt/NAS/Dokumente
the folder exists and is mounted but I get the error "no Detail". Can you please provide some help?
Host should be specified without "/api/" part. In your case --host http://nas:12000/.
where does "no Detail" error comes from ?
Thank you.
I tried as you suggested without "/api/" part and I got "Internal Server Error" as response.
But it imported some files of one of the folders.
When I try it again, it says
{"detail":"Title already exists"}
I too have a similar problem.
Even if you execute POST /nodes/ using REST API, Title already exists will be returned. Even though there is no node with the same name.
curl --location 'https://my-papermerge-host/api/nodes/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"title": "document title",
"ctype": "document",
"parent_id": "<user id>"
}'