Open kkday-kevinhorasia opened 11 months ago
HI @kkday-kevinhorasia
Thanks for reporting this issue.
I'm unfamiliar with Studio Flow - do you have a link to the platform I might further investigate the issue with?
Unfortunately due to confidential issue I can't share the link. But I will describe it more detail here
Steps:
TwilioVoice.instance.call.place()
to make a call to my TwiML App which connect to my Studio Flow.@kkday-kevinhorasia sorry, I wasn't clear.
I'm unfamiliar with the Studio Flow platform, my best guess is https://flutterflow.io/ since "Studio Flow" didn't seem to show any results.
Do you have a link to the platform e.g. facebook.com. I understand, respect and do not need access to your account on the platform.
Sorry, I mean In Twilio Console Studio Flow.
@kkday-kevinhorasia
I see, thanks for reporting this issue - I'll be investigating over the weekend.
@kkday-kevinhorasia
If you've found a solution in the interim, that's fantastic. If not, I'd like to offer a few suggestions:
Review your TwiML application's code:
twilio_voice
, in my experience, might be the cause (they might use lower case)
{
"To": "...",
"From": "...",
}
This is a remenant from the old twilio_voice
I've carrier over, with the intention of changing in future.
/makeCall
as this might not be found500/Internal Server Error
(or along those lines)Thanks for the reply. I will give a simple example that give me that error:
request url
link to my Studio Flow.Say
widget as in the picture belowTwilioVoice.instance.call.place(
from: caller, // My own identity
to: callee, // any (since it will only hear message only)
extraOptions: extraOptions,
);
Thanks for the reply. I will give a simple example that give me that error:
- In my TwiML app
request url
link to my Studio Flow.- Inside my Studio Flow connect incoming call to
Say
widget as in the picture below
- From my Flutter App make call to my TwiML App (which redirect to my Studio Flow)
TwilioVoice.instance.call.place( from: caller, // My own identity to: callee, // any (since it will only hear message only) extraOptions: extraOptions, );
- I will hear the message from my Studio Flow, but I will also hear the error message "We are sorry, an application error has occur". The execution also will not stop properly and it return 400 error code as we can see from the picture below
Might I recommend obfuscating some details
First thoughts, To
field is empty - does the same occur with a valid client provided?
Yes, with valid client provided (call is connected to callee), the To
field at the first flow will have value, but as the flow goes to the second widget the To
parameter will be empty.
This behavior also occur when I am calling from Twilio Client in TwiML App, but calling from Twilio Client will not give me any error and the flow end normally.
Yes, with valid client provided (call is connected to callee), the
To
field at the first flow will have value, but as the flow goes to the second widget theTo
parameter will be empty.This behavior also occur when I am calling from Twilio Client in TwiML App, but calling from Twilio Client will not give me any error and the flow end normally.
I see - we're using call flows but haven't run into this problem. I'll need to investigate.
Though, the audible message "An application error has occurred" usually indicates a TwiML (or related) issue.
Hi @cybex-dev, I just wondering maybe the problem is caused by not up to date dependencies?
UPDATED
The problem is actually from the Twilio Android and iOS SDK and not this package. It seems that Twilio team already fix it.
Twilio reference ticket: # 14617521
Using any voice widget from studio flow will always give me error message [We are sorry, an application error has occur] at the end. But if I use my make-call function in studio flow, it will not give me any error.
Possible cause:
Assumption:
Any idea or possible solution to this problem? Thanks.