cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Client response formatted different from REST Get

maahutch
New Contributor

I'm trying to replace the REST Get snaps in my pipelines with the Http Client snap but the response I'm getting is formatted differently. With the Rest Get snap, the JSON response is formatted as a list so I can subset it using $entity.data notation: 

maahutch_1-1741703308989.png

However, when I use the HTTP Client snap, the 'entity' element is returned as a string: 

maahutch_2-1741703411450.png

As close as possible, I tried to configure both snaps the same but I'm assuming there's something different about the HTTP Client snap that I need to change. Can someone explain what I need to do to get the HTTP Client to return the JSON in the same format at the Rest Get snap?

 

 

6 REPLIES 6

koryknick
Employee
Employee

@maahutch - did you set your Content-Type in the HTTP Headers section of the HTTP Client?

In both the HTTP client and the REST Get snap , I have my headers set like this based on the source system documentation: 

maahutch_0-1741704920204.png

 

koryknick
Employee
Employee

@maahutch - please check your HTTP Client snap settings, under Client Settings / Output and ensure it is set to JSON.  JSON is the default, but perhaps it was changed accidentally?

koryknick
Employee
Employee

Sorry - to clarify, it would be under Client Settings / Output / Response Type