question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webchat is not rendering on IE 11 starting v4.10.0

See original GitHub issue

Screenshots

IMG1

Version

WebChat CDN v.4.10.1 Asp.Net Core 3.1 Angular 10 IE 11

Describe the bug

Wen the chatbot is deployed as an Azure Web App, the chatbot does not render on IE 11 and shows white page (please see the image provided above), but It renders in my local machine. The left window is the azure app and right window is my local. There are no errors under the console. The application is using es5 polyfill of webchat (https://cdn.botframework.com/botframework-webchat/4.10.1/webchat-es5.js). The WebChat works on all other browsers fine in Azure or local.

Now, in the left image under the console window we can see that webchat posted an activity which is an event to trigger bot’s welcome message. This is send when store middleware gest DIRECT_LINE/CONNECT_FULFILLED message. It appears that webchat framework is responding but it is not rendering on Azure.

 const store = this.webChat.createStore({}, () => next => action => {
   this.processAction(action);
   return next(action);
 });

  processAction(action) {
    if ('DIRECT_LINE/CONNECT_FULFILLED'.equalsTo(action.type)) {
      // When we receive DIRECT_LINE/CONNECT_FULFILLED action, we will send an event activity using WEB_CHAT/SEND_EVENT
      this.directLine.postActivity({
        from: { id: this.user.id, name: this.user.name },
        name: 'webchat/join',
        type: 'event',
        value: 'token'
      }).subscribe(
        id => console.log(`Posted activity, assigned ID ${id}`),
        error => console.log(`Error posting activity ${error.message}`)
      );
    }
    else if (this.showSpinner && 'WEB_CHAT/SET_SUGGESTED_ACTIONS'.equalsTo(action.type)) {
      // The welcome message is shown, hide the spinner.
      this.showSpinner = false;
    }
  }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
v-kydelacommented, Sep 16, 2020

@arman-g - I have reproduced your issue using the code you’ve just uploaded. All you must do to fix the problem is to make sure your page contains the appropriate CSS, as seen in the sample I linked to:

    <style>
      html,
      body {
        height: 100%;
      }

      body {
        margin: 0;
      }

      #webchat {
        height: 100%;
        width: 100%;
      }
    </style>

It seems the latest version of Web Chat will not render if it has no height attribute.

Does this resolve your issue?

1reaction
v-kydelacommented, Sep 15, 2020

@arman-g - I feel like Angular may be the culprit here. Can you try taking that Web Chat code out of the Angular component and testing it in an HTML script element directly? You can follow the samples for help with that.

Also, you still have arrow functions in your call to subscribe. I think it may be a bad idea to call directLine.postActivity before the connection has been fulfilled anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Webchat doesnt work with Internet Explorer
Im working with bots and now im trying to implement the Bot via Direct Line. The Bot works with Google Chrome and Mozilla...
Read more >
Internet Explorer 11 doesn't open at all
About 3 weeks ago, Internet Explorer 11 started crashing upon opening. Occasionally, it would work properly. I downloaded MalwareBytes and did a ...
Read more >
My Bot's webchat is not opening up on Internet Explorer
Bot Webchat URL does not open on IE, but works fine on Chrome. Could you please help us with this?
Read more >
IE11 desktop application retires in 8 months on June 15 ...
MC293961 - As announced in MC257152 (May 2021) and MC288052 (Sept 2021), the future of Internet Explorer on Windows 10 is in Microsoft...
Read more >
How to disable Internet Explorer (IE) - Windows 10
The browser can be disabled. How to disable Internet Explorer in Windows 10. Note: Before beginning, make sure you have downloaded an alternative...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found