I'm trying to use the API to upload a ticket attachment. Using the workaround doc found in another discussion about a different error trying to do the same. Using postman. I've been able to successfully auth and get JSESSIONID and wosid... and trying the upload post exactly as it is in the API doc just to try to get a successful example. Receiving the error response...
{
"type": "exception",
"message": "Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: Stream ended unexpectedly",
"result": {
"success": false
}
}
Tried the image file upload from postman in the workaround doc and get the same message. Tried to be diligent to investigate "Stream ended unexpectedly". References server closing the connection, but hard to know why. Hoping someone has seen this in context of this API before having to get too deep in the server logs.
Here is the raw post body from the API doc for easy reference...
POST /helpdesk/attachment/upload?type=jobTicket&entityId=40&returnFields=id,uploadDate HTTP/1.1
Cookie: JSESSIONID=BA1B63AA2DD9EBBB62B7A20E37377DED; wosid=EoPFUriceH4t4jn5HiXiqg
Content-Type: multipart/form-data; boundary====1400591996857===
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.7.0_55
Host: 127.0.0.1:8081
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 2143
--===1400591996857===
Content-Disposition: form-data; name="fileUpload"; filename="my.ini"
Content-Type: null
Content-Transfer-Encoding: binary # MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
... the rest of the file...
--===1400591996857===--
Any help is really appreciated!
Thanks