AnsweredAssumed Answered

response.mainpart is null

Question asked by Ganesh Reddy on Jul 22, 2016
Latest reply on Jul 28, 2016 by bloan03

I am trying to send the response back to requester using Return Template Response to Requestor Assertion and returning ${response.mainpart} but it is empty as shown in service debugger window as "mainpart = null" but in fact the backend is sending a response as shown in the postman(left side of the screenshot).

I am able to get the response when i directly use Route via HTTP Assertion without using Return Template Response to Requestor Assertion

 

Is this because of the Content-Type "application/vnd.kafka.binary.v1+json" ? Is there an extra configuration on Gateway which needs to be done to support this MIME Type ?

 

 

Screen Shot 2016-07-21 at 6.48.32 PM.png

 

This is similar to Mysterious empty response message raised by Nicolas_Afonso , haunting me now even with correctly set Content-Type header

 

I have already tried setting io.httpDefaultContentType cluster wide property to application/vnd.kafka.binary.v1+json without any success in getting the backend response.

 

FYI Gateway version used is : 8.3

 

Regards,

Ganesh Reddy

Outcomes