aws-lex-web-ui icon indicating copy to clipboard operation
aws-lex-web-ui copied to clipboard

chatbot loading time out

Open himanshuladola opened this issue 5 years ago • 1 comments

S3 has been hosted with sample application, CORS policy has been configured properly to load. Me and my team working on local host so parentOrigin is different within team. Below configuration has been provided while instantiating chat bot loader. Which should override the configuration settings and change parentOrigin. var chatbotUiconfig = { ui: { parentOrigin: 'http://localhost:5734' }, iframe: { // origin hosting the HTML file that will be embedded in the iframe iframeOrigin: 'http://cloudhrbot.s3-eu-west-1.amazonaws.com' }, lex: { sessionAttributes: { token: token, realmurl: keycloakUrl, hosturl: host } } };

Default JSON file hosted in S3 contains below configuration. "ui": { "parentOrigin": "http://localhost:5735", "toolbarTitle": "Talk to Me", "toolbarLogo": "", "positiveFeedbackIntent": "", "negativeFeedbackIntent": "", "helpIntent": "help", "enableLogin": false, "AllowSuperDangerousHTMLInMessage": true, "shouldDisplayResponseCardTitle": false, "pushInitialTextOnRestart": false, "directFocusToBotInput": false, "showDialogStateIcon": false }, "iframe": { "iframeOrigin": "http://cloudhrbot.s3.eu-west-1.amazonaws.com", "shouldLoadIframeMinimized": false, "iframeSrcPath": "/index.html#/?lexWebUiEmbed=true" } However I am getting "chatbot loading time out" and no clue about same. image

When application configured to use http://localhost:5735 IFrame is getting launch successfully and below are console log from same. image

Not sure how I can change parentOrigin runtime and also loader is taking same in account.

himanshuladola avatar Jan 29 '20 06:01 himanshuladola

Hi @himanshuladola , Have you solved this issue?

YoussefKafa avatar Mar 14 '23 16:03 YoussefKafa