cancel
Showing results for 
Search instead for 
Did you mean: 

REST Sender Synchronous - HTML error response instead of JSON

Former Member
0 Kudos

Hi,

For REST sender synchronous scenario, I have maintained mandatory field in sender data type. but when mandatory fields are missing then I am not getting a response in JSON format rather getting a response in HTML format. Please suggest what needs to be updated.

<html><head><title>Error</title></head>
<body><h1>Error</h1><pre>
Error while sending message to module processor: Sender Channel 'I2_RESTAPISender' : Catching exception calling messaging system: com.sap.aii.af.sdk.xi.srt.BubbleException: System Error Received. HTTP Status Code = 200: However System Error received in payload ErrorCode = INCORRECT_PAYLOAD_DATA ErrorCategory = XIServer Parameter1 =  Parameter2 =  Parameter3 =  Parameter4 =  Additional text =  ErrorStack = Error while processing message payload

Element 'Unique_Id' missing
 [http://sap.com/xi/XI/Message/30^Error "INCORRECT_PAYLOAD_DATA"]
</pre></body></html>

Attached my REST Sender Channel Configuration.

Br,

Raj

View Entire Topic
iaki_vila
Active Contributor
0 Kudos

Hi,

May be it's too late but i had this problem because i was used the SOAPui and i had to set the encoding correct, in the SOAPui, to support characters like í or ó

Regards.