You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error response not included in the fault details

Hi all,

I'm working in an integration with a service, and in this service, when an invalid body is sent, the REST API invoked sent a 400 status and in the response body, the error details, like that:

{

    "code": "BNH1",

    "id": "c51d115f-e24d-4d84-aad9-07b487b22ed4",

    "message": "The number sent already exists.",

    "status": "REJECTED"

}

But, in the OIC, the error displayed in the global fault handler is that:

<soap-env:Fault xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">  <faultcode xmlns:faultsrc="http://xmlns.oracle.com/cloud/adapter/REST/create_REQUEST">faultsrc:APIInvocationError</faultcode>  <faultstring>ICS runtime execution error</faultstring>  <detail>    <ICSfaultVar>      <ns2:APIInvocationError xmlns:ns2="http://xmlns.oracle.com/cloud/generic/rest/fault/REST/create">        <ns2:type />        <ns2:title />        <ns2:detail />        <ns2:errorCode />        <ns2:errorDetails>          <ns2:type>http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1</ns2:type>          <ns2:title>Bad Request</ns2:title>          <ns2:errorCode>400</ns2:errorCode>          <ns2:errorPath><![CDATA[POST https://xxxxxxxxxxxxxxxxxxxxx returned a response status of 400 Bad Request]]></ns2:errorPath>          <ns2:instance><![CDATA[.A 400 Bad Request Error indicates that the target service is unable (or refuses) to process the request sent by the client (Oracle Integration Cloud), due to

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!