https://discord.gg/botpress logo
HTTP Request Card Not Returning Response Body
# 🤝help
e
Hi, I can't return the response body from my https request. To diagnose the problem, i've created a simple https request to get image from: https://api.thecatapi.com/v1/images/search Expected: workflow.CatAPI.response.data[0].url should be available Actual behavior: The request exits with Success, i can see the response body under "there is a response" event But workflow.CatAPI only contains { EXIT: "Success" } The response body (data / url) is missing and not accessible in later nodes I'm not sure what's wrong exactly. please help. Thanks! https://cdn.discordapp.com/attachments/1470637541874208831/1470637542079467633/error_image1.png?ex=698c0571&is=698ab3f1&hm=4a2da69f6c4c0ab391a3a4af751c4d99151f09298a2fb554b121b048941b6283& https://cdn.discordapp.com/attachments/1470637541874208831/1470637542658539634/error_image2.png?ex=698c0571&is=698ab3f1&hm=b8a7a09398485a53e2958912174dcaf948cda64e636d089115bef1166f5de518&
the request is correctly done and returns the resposne you expect but it's then overwritten by the workflow
got it - the request subworkflow doesn't pass the variables back to the main workflow
after doing this the resposnse and request are passed back to the main workflow so {{workflow.CatAPI.response.data[0].url}} is available
e
Thank you so much for your help!! I have been wondering all day and now finally solved 🥺
l
Thank you Shen! 🫶
5 Views