like-gold•16mo ago
Error capturing response from my own API
Hello guys, I'm trying to connect my own API created with flask and Voiceflow, although I receive information from direct url or Postman I don't receive any value from Voiceflow. I use the doc to capture the variable as says (response.myobject) . But I don't find the way to collect data through Voiceflow even following the instructions...😭 . anybody knows if I need to create any parameter in the header or somewhere to get it works? I think the the problem is in this point since I see that the response is 200 code . Thanks!
5 Replies
Doesn't look like your api is returning valid JSON.
There is no content being returned.
like-goldOP•16mo ago
Yes, but in make.com and in postman I can see the result . I attach thre result from postman, I can't understand
Are you using a make webhook response module?
You need to use the make response and make sure you return valid JSON
lol - @Steve B. | IntelleSync.ai just said that
like-goldOP•16mo ago
But I don't need Make, Postman neither , I only use it to check that I receive data from my API, and I do. So the problem is in the Voiceflow capturing, thanks guys
Finally I found the answer. I resolved two problems. First one was that the dataframe that I sended had NaN values. If I handle this values with fillna("") I could send the whole dataframe. The second problem was the encoding. I had to encode the dataframe to "latin1". Now is working well 🙂