Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

ServiceNown stream end immediatly after a call through Twilio

User687957
Tera Contributor

Dear all,

I have a wierd issue when trying to integrate Twilio with servicenow.
I go through all the docs for configuring assistant and authentication as below

chrome_yHW4eIFN4M.png


When I dial the Trial twilio number, there is the trial message hangs up immediatly.
When I check in tiwllio log I have the following :
"

Error

31921 Stream - WebSocket - Close Error (Connection reset without closing handshake)"

It is then saying that this is the server ( ServiceNow) which hangs the connection and ask to go to logs.

What is the log tables for Assistant configuration ?

Thanks for help
regards



3 REPLIES 3

Tanushree Maiti
Tera Sage

 

Hi @User687957 ,

 

Did you get any place to set your MID server.

 

WebSocket connection errors

When a client attempts to communicate over WebSocket, it first assumes the server supports the protocol. If the client does not receive an acknowledgment from the server, the following error appears in the browser console log:

js_includes_concourse.jsx?v=05-01-2020_1402&lp=Sun_Jun_07_18_36_34_PDT_2020&c=38_1037:3084 WebSocket connection to 'wss://<instance_name>.service-now.com/amb' failed: Error during WebSocket handshake: Unexpected response code: 400
(anonymous) @ js_includes_concourse.jsx?v=05-01-2020_1402&lp=Sun_Jun_07_18_36_34_PDT_2020&c=38_1037:3084

If the communication channel is blocked by a firewall, load balancer, VPN, or proxy rule, this error is expected. The client automatically falls back to long-polling (HTTP) when WebSocket is not available.

 

Refer: https://www.twilio.com/docs/api/errors/31921

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0829978#:~:text=WebSocket%20c....

 

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hello @Tanushree Maiti , our ServiceNow instance is a cloud instance , there is notthing related to Mid Server in our config

I know servicenow instance is cloud instance. 

Can you check this sys property  glide.cometd.websocket.enabled value and confirm here

 

Also share the document link which you followed to set up the integration.

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: