09-10-2024 03:27 PM
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.
09-16-2024 09:25 AM
@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.
a month ago
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.
09-16-2024 01:12 AM - edited 09-16-2024 01:13 AM
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
09-16-2024 09:27 AM - edited 09-16-2024 09:27 AM
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.
09-16-2024 09:25 AM
@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.
a month ago
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.