Hello,
I am getting an error when calling the rest API to post comment. Test below has been done with Postman.
Request:
http://localhost:8080/rest/engine/default/task/a47242e0-0a94-11e9-ad7d-f83441629f6b/comment/create?message=test
Response:
{
“timestamp”: “2018-12-28T11:36:38.305+0000”,
“status”: 500,
“error”: “Internal Server Error”,
“message”: “No message available”,
“path”: “/rest/engine/default/task/a47242e0-0a94-11e9-ad7d-f83441629f6b/comment/create”
}
Why I am getting this error?
Thanks.
Hi,
I tried it but still not working.
langfr
4
As shown at the documentation you have to provide the content of the comment as a JSON object.
Not as a parameter within the URL.
https://docs.camunda.org/manual/7.9/reference/rest/task/comment/post-task-comment/#request
The engine is embedded in a spring boot Application. Hence the url to access the engine is currently -> rest/engine not engine-rest
I get this error after trying with a Json object
Niall
7
You need to add a header to the call
Content-Type
= application/json
2 Likes
Thanks Niall. It worked like magic.