odata-client-php icon indicating copy to clipboard operation
odata-client-php copied to clipboard

$batch requests using post - Change set errors not parsed

Open KieranFJ opened this issue 5 years ago • 0 comments
trafficstars

When using post() to fire a $batch based request containing one or more change sets, the response is returned as a HTTP 200 status. However if one or more of the change sets have failed and have, for example, a 500 status with a JSON error returned, these messages are not parsed.

$test = $oDataClient->post('$batch', $body);

Is there a returnType to give to getResponseAsObject() to pull the change set responses into something to iterate over and check?

image

KieranFJ avatar Oct 01 '20 14:10 KieranFJ