Getting error in connecting Twilio call

I am trying to implement demo “Make phone calls from your browser, entirely in Python”
I done everything according to “Calling from your Browser using Twilio and Python
But while testing it getting voice message “Sorry an application error has occured”
Doesn’t had clue where the error is and what it is

I require some help

Clone link:
https://anvil.works/build#clone:E5QMBUUO34RG7Y4P=3R3IESACGY63YF3F5437BHN7

Hi @seshadri.kunapuli and welcome to the Forum,

I can’t seem to see anything wrong with your app. Have you made sure you’ve set up everything correctly on the Twilio side? You should also be able to check your Twilio project’s debugging logs, which may point you in the right direction.

I followed “Calling from your Browser using Twilio and Python” and updated appsecrets accordingly

I got this on debugging logs
An attempt to retrieve content from GoMi returned the HTTP status code 404
I got this from anvil/publish as given in “Calling from your Browser using Twilio and Python

May be some problem with Anvil link GoMi

What have you entered on the Twilio console for the Request URL (step 3 of the tutorial)? I see there’s a typo in the article. It should say https://<my-anvil-app>.anvil.app/_/api/call-connected. (the // are missing in the article - I will fix that).

thank you please let me know what URL i have to update in Twilio ML

I have to update
httpsGoMi.anvil.app/_/api/call-connected

The URL should be in the format https://<my-anvil-app.anvil.app>/_/api/call-connected where <my-anvil-app.anvil.app> is replaced by the URL of your app. So in your case, e5qmbuuo34rg7y4p.anvil.app/6QSNVPWRV2JO5YCK7WL63KU3.

I think this should be

.anvil.app/_/api/call-connected

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

You’ve added an extra .anvil.app. My previous post was unclear, I’ve edited it.

still getting error after changing link to
e5qmbuuo34rg7y4p.anvil.app/6QSNVPWRV2JO5YCK7WL63KU3/call-connected

I removed extra .anvil.app and added only /call-connected to link I got from publish

The URL should be https://e5qmbuuo34rg7y4p.anvil.app/6QSNVPWRV2JO5YCK7WL63KU3/_/api/call-connected

I added the link but still application error

Ah because your app is private, it will be a little different. At the bottom of your server module in your app, there is a message that tells you the URL for HTTP endpoints. Please use that

1 Like

Hi Brooke, App is working now thanks for your help

1 Like

If I want to add another Twilio function, like record/transcribe in the app where should I add it?