cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Response datapills not displaying anything in Logger

rlymer
Deputy Chef I
Deputy Chef I

I am sending an HTTP POST request, getting the response body as datapills and passing them in future actions in the same recipe.
When testing that the datapills actually contain data using Logger, nothing is displayed. Can anyone see why the datapill wouldn't be outputting any data?

Response Schema:

Screenshot 2024-09-11 102230.png

 Response:

Screenshot 2024-09-11 101323.png

 Logger Message:

Screenshot 2024-09-11 101551.png

 Logger Output:

Screenshot 2024-09-11 101523.png

2 ACCEPTED SOLUTIONS

gary1
Executive Chef III
Executive Chef III

@rlymer can you show the configuration of your HTTP connector? Make sure the "Response Content Type" is set to JSON. Based on your screenshot, it appears the response is being interpreted as text.

View solution in original post

Turns out I was using the v1 API for this system that only returned text output. The v2 API returned JSON when I used it.

View solution in original post

4 REPLIES 4

shivakumara
Executive Chef I
Executive Chef I

Hi @rlymer ,

can see that your token follows the hierarchy below.
Status --> Data--> Token (Please let me know if my interpretation is incorrect).

Because of this, if you specify the token directly, it will not be displayed in the logger; instead, use the "pluck"  formula to fetch the token. Please let me know if that works for you; otherwise, we can connect.

Thanks and Regards,
Shivakumara A

gary1
Executive Chef III
Executive Chef III

Pluck isn't needed here. The response is being interpreted as text, but it should be parsed as JSON.

In the example, Status and Data are on the same level. Data is not within Status.

gary1
Executive Chef III
Executive Chef III

@rlymer can you show the configuration of your HTTP connector? Make sure the "Response Content Type" is set to JSON. Based on your screenshot, it appears the response is being interpreted as text.

Turns out I was using the v1 API for this system that only returned text output. The v2 API returned JSON when I used it.