02-19-2019 3:51 PM
I got a problem doing POST within a batch request using postman.
My request URL is like ....../..../...xsodata/$batch
Im using the following Header
Content-Type multipart/mixed;boundary=batch
My payload is the following
--batch Content-Type:multipart/mixed;boundary=changeset
Content-Transfer-Encoding:binary
--changeset
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID: 1
POST Trigger HTTP/1.1 Content-Type: application/json Content-Length:200
{"PARTNER_ID": "0000000003","DB_OPERATION": U,"TIMESTAMP": "201903151634323090315"}
--changeset-- --batch--
I get the following Error message "Error processing request stream. JSON text specified is not valid."
However, using a single POST, there is nothing wrong with the JSON and the record is added to the table:
for a single Post i'm using
Content-Type application/json as header and
{"PARTNER_ID": "0000000003","DB_OPERATION": U,"TIMESTAMP": "201903151634323090315"} as the payload.
Does anybody know what I'm doing wrong
11-04-2020 8:49 PM
Hi Oliver, any luck in getting this issue resolved?
I am also getting same error now