a month ago
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:
โResponse:
โLogger Message:
โLogger Output:
โ
โ
โ
Solved! Go to Solution.
3 weeks ago
@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.
3 weeks ago - last edited 3 weeks ago
Hi @rlymer ,
I 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
3 weeks ago - last edited 3 weeks ago
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.
3 weeks ago
@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.