Hi,
I am unable to add a comment via REST API and can't seem to figure out the issue.
C:\>curl -k -D- -u tsapra:xxxxx -X POST --data test.text
-H "Content-Type: application/json" https://testjira.com/rest/api/2/issue/KJA-19/comment
amd the test.txt file contains -
{
"body": "This request was originally written in French, which most of our developers can't read"
}
I have also tried with file name test.json.
I get the response ---
HTTP/1.1 400 Bad Request
Date: Wed, 27 Nov 2013 11:40:48 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 760x2036x1
X-Seraph-LoginReason: OK
X-ASESSIONID: 1cxk3g1
X-AUSERNAME: tsapra
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Connection: close
Transfer-Encoding: chunked
{"errorMessages":["Unrecognized token 'tettx': was expecting 'null', 'true', 'fa
lse' or NaN\n at [Source: org.apache.catalina.connector.CoyoteInputStream@63035e
a2; line: 1, column: 19]"]}