botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Skype Web Control] Bug? Not loading on Chrome and Firefox?

Open wacton opened this issue 8 years ago • 47 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: 3.12.2.4
  • Active Channels: Skype, Web
  • Deployment Environment: Azure bot service, web app hosted on Azure VM.

Issue Description

The Skype Web control seems to have an issue on Chrome (63.0.3239.132) and Firefox (57.0.3). The chat window starts to load, refreshes twice and then ends up showing a white rectangle as below: image This is the console log: SkypeWebControl.log

The same bot works fine in the Web Control on Edge (41.16299) however: image

This also only appears to happen on browsers where the Web Control scripts have not been previously cached. Opening an incognito window still shows this issue.

Code Example

<html>
    <body style="background-color:black">
        <span class="skype-button bubble " data-bot-id=""></span>
        <script src="https://swc.cdn.skype.com/sdk/v1/sdk.min.js"></script>
    </body>
</html>

Reproduction Steps

  1. Add Skype Web Control to a page
  2. Make sure it's not a cached
  3. Open in Chrome, Firefox and Edge

Expected Behavior

The chat window to load and users be able to send messages

Actual Results

Shows a white rectangle

wacton avatar Jan 15 '18 03:01 wacton

@wacton - Thanks for reporting - I will forward this information to the Skype Web Control team for further investigation.

nwhitmont avatar Jan 15 '18 19:01 nwhitmont

@wacton I'm the PM for Skype Web Control. We unfortunately cannot reproduce this. Can you provide us your bot's ID, so we can test it against that as well?

renebrandel avatar Jan 16 '18 14:01 renebrandel

@brene

I am facing exactly the same issue in the same versions of Chrome and Firefox...

Here's my bot id:- 404916f0-9fa1-4003-9d26-8e99978614c6

Could You please help me in this regard ?

Rakin061 avatar Jan 16 '18 16:01 Rakin061

@brene bot ID is ce0f5873-7d96-477b-94d8-105d6a3923b1

It seems to be a bit sporadic when I test it. Testing it again now, I initially got it to load on Firefox, then opened Firefox in a private window and it doesn't load. Went back into normal mode with Firefox and cleared all site data & cache. Reloaded the page with the bot, I now see the same issue present itself again.

wacton avatar Jan 16 '18 21:01 wacton

In chrome... Here's my error log:-

Failed to load resource: net::ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY services-bundle.min.js:1 Uncaught (in promise) Object lwc-chat-index.min.html:1 Uncaught (in promise) Object lwc-chat-index.min.html:1 Uncaught (in promise) Object swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:1 Trouter [Trouter] open connection services-bundle.min.js:1 Uncaught (in promise) Object lwc-chat-index.min.html:1 Uncaught (in promise) Object swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:1 Trouter [Trouter] auth required swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:1 Trouter [Trouter event] authentication failed swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:1 trouter telemetry event: trouterinit {"type":"authenticationFailed","registrationId":"4c014f06-7f0c-d26b-8812-443aed05438e","connectionId":"uSoCADFYnMI2V8D7B874_tEq","connectedClientId":"V8D7B874_tEq"} services-bundle.min.js:1 Uncaught (in promise) Object chat-bundle.min.js:13 Uncaught (in promise) TypeError: Cannot read property 'then' of undefined at chat-bundle.min.js:13 at lwc-chat-index.min.html:1 Uncaught (in promise) Object swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:6 Uncaught (in promise) TypeError: Cannot read property 'status' of null at Array.f (swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:6) at e.publish (swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:6) at swc.cdn.skype.com/v/0.49.11/calling-bundle.min.js:6 at

Rakin061 avatar Jan 17 '18 04:01 Rakin061

@Rakin061 @wacton do you mind telling me if your website is running on HTTPS or HTTP? We are still having trouble reproducing the error.

renebrandel avatar Jan 17 '18 15:01 renebrandel

Hello @brene

Thanks for your reply. Actually my website is running on HTTP.

Here's the link : http://job.erainfotechbd.com:8888/hr/f?p=100:1:2524620618320548

Downside, there is the skype-rounded button named. "Chat with ERA HRM"

My Google Chrome Version:- 63.0.3239.132 (Official Build) (32-bit) My Firefox Version:- 57.0.4 (32-bit)

Hopefully, you could reproduce if you use the identical version of the above mentioned browsers.

And, the Web control embed code:-

<span class="skype-button rounded"
	data-bot-id="404916f0-9fa1-4003-9d26-8e99978614c6" data-text="Chat with ERA HRM"></span> 

	<script src="https://swc.cdn.skype.com/sdk/v1/sdk.min.js"></script>

Thanks in advance.

Rakin061 avatar Jan 17 '18 16:01 Rakin061

@brene the website where it normally runs is https, which is where we first picked up the issue.

For my testing locally to exclude any other of our code I just created a basic html page and opened it directly in a browser window. The html page contains only the code referenced in my first post.

wacton avatar Jan 17 '18 20:01 wacton

@brene I've added my test page to a public site. You can hit it with either http or https: http://devwww.appsforops.com/Testbot.html or https://devwww.appsforops.com/Testbot.html

I can sometimes get it to work when not in Incognito/Private browser window. But it always happens when I open a new Incognito window.

wacton avatar Jan 17 '18 21:01 wacton

Hm... that's really weird. I just tried it and I can't seem to repro.

renebrandel avatar Jan 17 '18 22:01 renebrandel

Can you make a screenshot with the network tag open? This could help us out.

renebrandel avatar Jan 17 '18 22:01 renebrandel

Sure. Here is the screenshot.

image

wacton avatar Jan 18 '18 03:01 wacton

Here's my screenshot as well. It is hosted in a Real Ip shown in the image and will be always running.

Link:- http://202.40.190.116:81/ocas/

skype_frame

Rakin061 avatar Jan 18 '18 04:01 Rakin061

For my bot if i am logged in to skype with the webchat, the webchat works fine. Otherwise webchat does not load. Both in http and https.

dchathu avatar Jan 18 '18 04:01 dchathu

I just checked in Chrome and Firefox clearing caches and browsing data and I found that everything is fairly Okay!!

Any news from your end ?? @wacton ??

So, @brene Have you been able to reproduce the problem and fix this problem as well ? If yes, then I would love to notify all my clients that the problem has been solved.

Rakin061 avatar Jan 19 '18 15:01 Rakin061

@Rakin061 @chathudev @wacton we have rebooted some of our services, where we believe the root cause could be. Can you check again?

renebrandel avatar Jan 19 '18 23:01 renebrandel

This one is very tricky to debug as sadly no one from the team can reproduce this.

renebrandel avatar Jan 19 '18 23:01 renebrandel

@brene I tested it on my side now and can no longer reproduce it. I've asked other members on my team just to confirm they are no longer seeing it either. It looks like the rebooting of your services fixed it, will confirm once I hear back from them.

wacton avatar Jan 20 '18 00:01 wacton

Awesome! Please reopen this when this is still an issue.

renebrandel avatar Jan 20 '18 00:01 renebrandel

Just had confirmation from the rest of my team, everything back in working order. Thanks for your help @brene

wacton avatar Jan 20 '18 01:01 wacton