Twilio 12100 Error in Browser to Phone CallUsing Twilio/XML without RailsRedirecting a Call to a new Twiml URLXML not generating for twilio in ruby fileTwilio ClientQuickstart not working as intendedMissing </meta> for Google and TwilioGetting error while executing python program to get a caller to conference call from twilio serverTwilio Voice Call & Google Sheets/GAS IntegrationReceiving a real incoming call in Twilio's ClientQuickstartTwilio JS client hanging up immediatelyTwilio testing outbound call with ngrok
Is Lambda Calculus purely syntactic?
Entered UK using my now-lost UK passport; can I go to Spain using my US passport?
Is tuition reimbursement a good idea if you have to stay with the job
What is the "books received" section in journals?
Is it advisable to add a location heads-up when a scene changes in a novel?
Part of my house is inexplicably gone
Oil draining out shortly after turbo hose detached/broke
What does the homotopy coherent nerve do to spaces of enriched functors?
How to create two-week recurring alarms and reminders?
Do they make "karaoke" versions of concertos for solo practice?
Savage Road Signs
In Pandemic, why take the extra step of eradicating a disease after you've cured it?
Can I use 220 V outlets on a 15 ampere breaker and wire it up as 110 V?
C++ logging library
How can powerful telekinesis avoid violating Newton's 3rd Law?
In The Incredibles 2, why does Screenslaver's name use a pun on something that doesn't exist in the 1950s pastiche?
What do you call the action of "describing events as they happen" like sports anchors do?
Why is my power MOSFET heating up when on?
Realistic, logical way for men with medieval-era weaponry to compete with much larger and physically stronger foes
My mom's return ticket is 3 days after I-94 expires
Why did the World Bank set the global poverty line at $1.90?
Placement of positioning lights on A320 winglets
What is the STRONGEST end-of-line knot to use if you want to use a steel-thimble at the end, so that you've got a steel-eyelet at the end of the line?
How strong someone should be in order to fly without servo assisted hydraulics?
Twilio 12100 Error in Browser to Phone Call
Using Twilio/XML without RailsRedirecting a Call to a new Twiml URLXML not generating for twilio in ruby fileTwilio ClientQuickstart not working as intendedMissing </meta> for Google and TwilioGetting error while executing python program to get a caller to conference call from twilio serverTwilio Voice Call & Google Sheets/GAS IntegrationReceiving a real incoming call in Twilio's ClientQuickstartTwilio JS client hanging up immediatelyTwilio testing outbound call with ngrok
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Context: Twilio Browser-to-Phone calling API
What I am trying to achieve:
On click of the 'call customer' button, get a new page to pop up containing the calling functionality (i.e., the status bar, the 'answer call' button and the 'hang up' button) and then the call should connect.
What is happening:
The new page does pop up and the call ringing starts:
but after a while I get the 'Sorry, an application error occurred' message.
On inspecting the error in the debugger I found that I have been getting "Error-12100" messages. Every time I correct one, another error comes up pointing to a flaw in the some part of the code (of the template being rendered).
The errors include messages such as
"The element type "link" must be terminated by the matching end-tag "</link>". "
'the entity "copy" was referenced, but not declared.'
"Attribute name "disabled" associated with an element type "button" must be followed by the ' = ' character. "
"The element type "meta" must be terminated by the matching end-tag " <meta> ". "
"DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true. "
and so on, even though this code is almost identical to the one on the repository: https://github.com/TwilioDevEd/browser-calls-django.
I feel that the error should be something small that is triggering all of this, but could not find an open quotation mark or anything of the sort. Any help would be appreciated.
Notes:
I am using ngrok and that seems to be configured correctly in the Django app and the Twiml app
The way I am referencing a js file from one of the templates (the one where the bugs seem to be according to Twilio) is:
% block page_js %
% load static %
<script src="% static 'js/in_progress.js' %"></script>
% endblock %
- I am passing the phone number through the newWindow attribute as:
newWindow=window.open(url,'title','height=300,width=500');
if (window.focus) newWindow.focus()
newWindow.phoneNumber=phoneNumber
and then accessing this phoneNumber
property in newWindow
. The number reaches the new window correctly, but I'm not sure if it's in the format that Twilio requires (and don't know how to verify this)
django twilio
add a comment |
Context: Twilio Browser-to-Phone calling API
What I am trying to achieve:
On click of the 'call customer' button, get a new page to pop up containing the calling functionality (i.e., the status bar, the 'answer call' button and the 'hang up' button) and then the call should connect.
What is happening:
The new page does pop up and the call ringing starts:
but after a while I get the 'Sorry, an application error occurred' message.
On inspecting the error in the debugger I found that I have been getting "Error-12100" messages. Every time I correct one, another error comes up pointing to a flaw in the some part of the code (of the template being rendered).
The errors include messages such as
"The element type "link" must be terminated by the matching end-tag "</link>". "
'the entity "copy" was referenced, but not declared.'
"Attribute name "disabled" associated with an element type "button" must be followed by the ' = ' character. "
"The element type "meta" must be terminated by the matching end-tag " <meta> ". "
"DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true. "
and so on, even though this code is almost identical to the one on the repository: https://github.com/TwilioDevEd/browser-calls-django.
I feel that the error should be something small that is triggering all of this, but could not find an open quotation mark or anything of the sort. Any help would be appreciated.
Notes:
I am using ngrok and that seems to be configured correctly in the Django app and the Twiml app
The way I am referencing a js file from one of the templates (the one where the bugs seem to be according to Twilio) is:
% block page_js %
% load static %
<script src="% static 'js/in_progress.js' %"></script>
% endblock %
- I am passing the phone number through the newWindow attribute as:
newWindow=window.open(url,'title','height=300,width=500');
if (window.focus) newWindow.focus()
newWindow.phoneNumber=phoneNumber
and then accessing this phoneNumber
property in newWindow
. The number reaches the new window correctly, but I'm not sure if it's in the format that Twilio requires (and don't know how to verify this)
django twilio
add a comment |
Context: Twilio Browser-to-Phone calling API
What I am trying to achieve:
On click of the 'call customer' button, get a new page to pop up containing the calling functionality (i.e., the status bar, the 'answer call' button and the 'hang up' button) and then the call should connect.
What is happening:
The new page does pop up and the call ringing starts:
but after a while I get the 'Sorry, an application error occurred' message.
On inspecting the error in the debugger I found that I have been getting "Error-12100" messages. Every time I correct one, another error comes up pointing to a flaw in the some part of the code (of the template being rendered).
The errors include messages such as
"The element type "link" must be terminated by the matching end-tag "</link>". "
'the entity "copy" was referenced, but not declared.'
"Attribute name "disabled" associated with an element type "button" must be followed by the ' = ' character. "
"The element type "meta" must be terminated by the matching end-tag " <meta> ". "
"DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true. "
and so on, even though this code is almost identical to the one on the repository: https://github.com/TwilioDevEd/browser-calls-django.
I feel that the error should be something small that is triggering all of this, but could not find an open quotation mark or anything of the sort. Any help would be appreciated.
Notes:
I am using ngrok and that seems to be configured correctly in the Django app and the Twiml app
The way I am referencing a js file from one of the templates (the one where the bugs seem to be according to Twilio) is:
% block page_js %
% load static %
<script src="% static 'js/in_progress.js' %"></script>
% endblock %
- I am passing the phone number through the newWindow attribute as:
newWindow=window.open(url,'title','height=300,width=500');
if (window.focus) newWindow.focus()
newWindow.phoneNumber=phoneNumber
and then accessing this phoneNumber
property in newWindow
. The number reaches the new window correctly, but I'm not sure if it's in the format that Twilio requires (and don't know how to verify this)
django twilio
Context: Twilio Browser-to-Phone calling API
What I am trying to achieve:
On click of the 'call customer' button, get a new page to pop up containing the calling functionality (i.e., the status bar, the 'answer call' button and the 'hang up' button) and then the call should connect.
What is happening:
The new page does pop up and the call ringing starts:
but after a while I get the 'Sorry, an application error occurred' message.
On inspecting the error in the debugger I found that I have been getting "Error-12100" messages. Every time I correct one, another error comes up pointing to a flaw in the some part of the code (of the template being rendered).
The errors include messages such as
"The element type "link" must be terminated by the matching end-tag "</link>". "
'the entity "copy" was referenced, but not declared.'
"Attribute name "disabled" associated with an element type "button" must be followed by the ' = ' character. "
"The element type "meta" must be terminated by the matching end-tag " <meta> ". "
"DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true. "
and so on, even though this code is almost identical to the one on the repository: https://github.com/TwilioDevEd/browser-calls-django.
I feel that the error should be something small that is triggering all of this, but could not find an open quotation mark or anything of the sort. Any help would be appreciated.
Notes:
I am using ngrok and that seems to be configured correctly in the Django app and the Twiml app
The way I am referencing a js file from one of the templates (the one where the bugs seem to be according to Twilio) is:
% block page_js %
% load static %
<script src="% static 'js/in_progress.js' %"></script>
% endblock %
- I am passing the phone number through the newWindow attribute as:
newWindow=window.open(url,'title','height=300,width=500');
if (window.focus) newWindow.focus()
newWindow.phoneNumber=phoneNumber
and then accessing this phoneNumber
property in newWindow
. The number reaches the new window correctly, but I'm not sure if it's in the format that Twilio requires (and don't know how to verify this)
django twilio
django twilio
asked Mar 24 at 23:29
rahsrahs
399414
399414
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Twilio developer evangelist here.
The issue seems to be that Twilio is sending a webhook to your application to find out what to do with the call and it is not getting back something it expects. You should be returning TwiML but given the errors it looks like you are returning HTML. I would check the URL you have set up in your TwiML application and what it is responding to requests with.
The part of the example app that you linked to that should be returning this TwiML is here: https://github.com/TwilioDevEd/browser-calls-django/blob/master/browser_calls/views.py#L58-L71.
Let me know if that helps at all.
Thanks! Do you know how I can returnHttpResponse(str(response))
as well as returnrender(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return therender
request is because that''s what opens the new page
– rahs
Mar 25 at 12:01
1
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329579%2ftwilio-12100-error-in-browser-to-phone-call%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Twilio developer evangelist here.
The issue seems to be that Twilio is sending a webhook to your application to find out what to do with the call and it is not getting back something it expects. You should be returning TwiML but given the errors it looks like you are returning HTML. I would check the URL you have set up in your TwiML application and what it is responding to requests with.
The part of the example app that you linked to that should be returning this TwiML is here: https://github.com/TwilioDevEd/browser-calls-django/blob/master/browser_calls/views.py#L58-L71.
Let me know if that helps at all.
Thanks! Do you know how I can returnHttpResponse(str(response))
as well as returnrender(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return therender
request is because that''s what opens the new page
– rahs
Mar 25 at 12:01
1
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
add a comment |
Twilio developer evangelist here.
The issue seems to be that Twilio is sending a webhook to your application to find out what to do with the call and it is not getting back something it expects. You should be returning TwiML but given the errors it looks like you are returning HTML. I would check the URL you have set up in your TwiML application and what it is responding to requests with.
The part of the example app that you linked to that should be returning this TwiML is here: https://github.com/TwilioDevEd/browser-calls-django/blob/master/browser_calls/views.py#L58-L71.
Let me know if that helps at all.
Thanks! Do you know how I can returnHttpResponse(str(response))
as well as returnrender(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return therender
request is because that''s what opens the new page
– rahs
Mar 25 at 12:01
1
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
add a comment |
Twilio developer evangelist here.
The issue seems to be that Twilio is sending a webhook to your application to find out what to do with the call and it is not getting back something it expects. You should be returning TwiML but given the errors it looks like you are returning HTML. I would check the URL you have set up in your TwiML application and what it is responding to requests with.
The part of the example app that you linked to that should be returning this TwiML is here: https://github.com/TwilioDevEd/browser-calls-django/blob/master/browser_calls/views.py#L58-L71.
Let me know if that helps at all.
Twilio developer evangelist here.
The issue seems to be that Twilio is sending a webhook to your application to find out what to do with the call and it is not getting back something it expects. You should be returning TwiML but given the errors it looks like you are returning HTML. I would check the URL you have set up in your TwiML application and what it is responding to requests with.
The part of the example app that you linked to that should be returning this TwiML is here: https://github.com/TwilioDevEd/browser-calls-django/blob/master/browser_calls/views.py#L58-L71.
Let me know if that helps at all.
answered Mar 25 at 2:13
philnashphilnash
40.3k93655
40.3k93655
Thanks! Do you know how I can returnHttpResponse(str(response))
as well as returnrender(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return therender
request is because that''s what opens the new page
– rahs
Mar 25 at 12:01
1
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
add a comment |
Thanks! Do you know how I can returnHttpResponse(str(response))
as well as returnrender(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return therender
request is because that''s what opens the new page
– rahs
Mar 25 at 12:01
1
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
Thanks! Do you know how I can return
HttpResponse(str(response))
as well as return render(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return the render
request is because that''s what opens the new page– rahs
Mar 25 at 12:01
Thanks! Do you know how I can return
HttpResponse(str(response))
as well as return render(request, 'browser_calls/call_in_progress.html', context)
from the same function in views.py? The reason I need to return the render
request is because that''s what opens the new page– rahs
Mar 25 at 12:01
1
1
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
Sounds like it would be better to split that into two views. When Twilio makes a request to your endpoint, you only need to return the TwiML response to Twilio. That request is completely separate to what is going on with your user view.
– philnash
Mar 25 at 23:14
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329579%2ftwilio-12100-error-in-browser-to-phone-call%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown