Hello my name is Colin,
I'm trying to implement the chat widget v1.1 that is specified under this link: Web Chat
The problem we are facing right now is that when a user starts the chat via the example code, we get the following throw in the console window of our browser:
frame-c46a0aa0.js:472 Uncaught (in promise) Error: No agent info found
at frame-c46a0aa0.js:472
at n (frame-c46a0aa0.js:5)
at Generator._invoke (frame-c46a0aa0.js:5)
at Generator.t.<computed> [as next] (frame-c46a0aa0.js:5)
at n (frame-c46a0aa0.js:472)
at frame-c46a0aa0.js:472
This doesn't prevent chat functionality, actually, the chat still works and you can still connect to an agent and get the help you need.
The problem is that we are using:
webchat.chatEnded = function (ex) {
}
and since the javascript in the iframe has thrown an error the binding that it caught from our javascript configuration is ignored and never executed. If an agent chooses to end the chat in PureCloud the binding never triggers and we loose functionality to do something after the chat has ended.
Please note that we tried v1.0 and this worked perfectly, no thrown errors and we could get the binding to execute when an agent chose to end the chat in v1.0.
Thank you for reading this,
Regards,
#DigitalChannels
#Implementation
#Integrations