sunny-green•2y ago
Time Out?
I am using API Calls but somehow and at random moments, voiceflow decides to time out or whatever this nofitication should tell me. Please help

8 Replies
It seems like you're encountering issues with timeouts during API calls. This could be due to the "No Reply Response" feature in Voiceflow. This feature is designed to handle situations where the user gives no response at all, remaining silent or away from the keyboard. Under any "User Input" type step, there is an option to "Add No Reply Response" and designate a timeout period.
To handle interactions within the Dialog Manager API, you can reference the no-reply trace. Here's an example of how it looks:
If the timeout period is too short, it might be causing the issues you're experiencing. You might want to adjust this setting to better suit your needs.
For more information, you can refer to the No Reply Response documentation.
If the issue persists, it might be related to the specific API calls you're making. Voiceflow functions have access to a modified fetch API for making network requests. If the API you're interacting with is slow to respond, it might be causing timeouts.
You can find more details about how to make network requests in Voiceflow in the Functions documentation.
sunny-greenOP•2y ago
that is actually not the problem. the error message shows up after i send a message in the "run test" mode. the api is connected to a replit backend with code to execute functions. after loading for some seconds, voiceflow tells me "unable to fetch response" even though the back end works perfectly fine.
What it the response time for your call to your replit backend?
Looks like you're hitting a timeout here.
sunny-greenOP•2y ago
the funny thing is that that this message doesn't show up after a certain amount of seconds. sometimes it shows up instantly after i send a message to the bot & sometimes it takes up to a minute.
Are you using OpenAI model after the API request?
sunny-greenOP•2y ago
yes i am. my back end on replit is connected to open ai via the api
Most likely the issue then.
Double check the response time for those calls to OpenAI API and the full response time to your backend.
extended-salmon•2y ago
I presume it's a formatting issue in the variables or how the final API looks after variables are added in there.
Was having this issue a few days back I corrected some syntax errors caused by variables. This might help you debug that