Opened 5 weeks ago

Last modified 5 weeks ago

#914 new bug

Logical Doc API

Reported by: aravind Owned by:
Priority: blocker Milestone:
Component: Core Version: 8.1
Keywords: API, REST, Python framework Cc:


I am using the logicaldoc api to update the tags and attributes of a file. It works most of the time however sometimes I get the following error.

Status Code: 500

I am using the python to call the api in the following way. I am running in a docker compose so I can reference the logicaldoc container with http://logicaldoc ...
I know that the attributes, tags, template id, file and folder id have the right format and are present, since the error description is different to when the attributes and tags are of the wrong form.

#import requests
#BASE_LOGICAL_API = http://logicaldoc:8080/services/rest
meta = {

"id": fileID,
"folderId": folderId,
"tags": tags,
"templateId": TEMPLATE_ID,
"attributes": attributes,


update_url = BASE_LOGICAL_API + "/document/update"
update_response = requests.put(update_url, data=json.dumps(meta), auth=('admin', 'admin'), headers={"Content-Type":"application/json","Accept":"application/json",})

Change History (1)

comment:1 Changed 5 weeks ago by aravind

It seems to be rather than the document/update endpoint failing (it should return 201 code since it has no response) it is the document/upload failing. Though the API request completes its function it doesn't return the fileID in it its response rather this error:$ResponseBuilder??.status(ILjava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder??;

Note: See TracTickets for help on using tickets.