amazon-connect / amazon-connect-chat-interface

Amazon Connect Chat Interface - a browser-based customer chat widget for your website integrating with Amazon Connect ChatJS
https://docs.aws.amazon.com/connect/latest/adminguide/what-is-amazon-connect.html
MIT No Attribution
40 stars 43 forks source link

Initialization failed #257

Closed rajivcoomar closed 1 month ago

rajivcoomar commented 1 month ago

I have followed the step of cloning the repo and performed npm run release to generate the amazon-connect-chat-interface.js

image

The generated amazon-connect-chat-interface.js deployed to our s3 and made accessible file cloud front url : https://dtky8hb7pj87y.cloudfront.net/JWTDemo/public/amazon-connect-chat-interface.js

I modified the OOTB widget to add customerChatInterfaceUrl

image

But I am getting the error :

image

I have not modified the git code, just cloned, build and trying to run it, but it’s failing. Can you help me if I am missing any step ?

alexander-sigida commented 1 month ago

I tried this last week on Friday and today, got exactly the same result. Even did the same update as in the docs example. The funny part is that style seems to be applied:

image

No other errors then this one:

image
rajivcoomar commented 1 month ago

I found the solution, just updated the package.json amazon-connect-chatjs": "^2.2.4",

To

"amazon-connect-chatjs": "^2.2.5",

xiajon commented 1 month ago

Thanks for submitting the issue, I have merged the chatjs upgrade to fix the issue. alexander-sigida are you still facing the issue after the upgrade? The reason for this issue is a new event handler introduced for onChatRehydrated which was only available in chatjs 2.2.5 version

alexander-sigida commented 1 month ago

Thanks, @rajivcoomar and @xiajon, after update of the chatjs to 2.2.5 I'm no longer experiencing the issue.