microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.56k stars 1.51k forks source link

CDN is not reachable when using only ipv6 #5012

Open elopezanaya opened 5 months ago

elopezanaya commented 5 months ago

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest), Browser: Firefox (latest)

Which area does this issue affect?

Protocol or service

What is the public URL for the website?

No response

Please describe the bug

when a customer is using only IPV6, the CDN for webchat is not reachable

image

https://cdn.botframework.com/botframework-webchat/latest/webchat.js

image

image

Do you see any errors in console log?

No response

How to reproduce the issue?

just disable IPV4 and ensure you are using only IPV6, then try to access to the CDN

What do you expect?

the cdn to be reachable...

What actually happened?

CDN is not reachable , therefore the JS is not reachable

Do you have any screenshots or recordings to repro the issue?

image

https://cdn.botframework.com/botframework-webchat/latest/webchat.js

image

image

Adaptive Card JSON

No response

Additional context

No response

OEvgeny commented 5 months ago

After some tests I found that there is no DNS IPv6 AAAA Record for the https://cdn.botframework.com

Tagging @tracyboehrer to see who owns BotFramework CDN to make the change

This makes the domain not possible to resolve in ipv6 only networks, thus the CDN is not ipv6 ready

As a workaround, you could try using a different CDN providing WebChat package distributed through NPM. E.g.: https://www.unpkg.com/botframework-webchat@latest/dist/webchat.js

elopezanaya commented 5 months ago

Thanks I'll do the test using unpkg CDN framework