microsoft / microsoft/BotFramework-WebChat
[Tracking] DLS: Using in Firefox put Web Socket in infinite reconnection loop
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
This is a tracking bug.
Version
master, not on production yet.
Describe the bug
Firefox default language ID to en instead of en-US.
Since Cognitive Services do not support en, but en-US and en-GB, thus, it error-ed out.
Speech SDK keep reconnecting whenever their service return error.
Steps to reproduce
This can be reproduced on any browsers with unsupported language identifier.
- Open Firefox (or any browsers)
- Make sure the language is
en, instead ofen-US(Firefox default toen) - Open dev tools, go to network tab
- Open
06.i.direct-line-speechsample
Expected behavior
It error out once or twice. Then stop.
Additional context
[Bug]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The reproduction starts in the 06.i.direct-line-speech sample; run it in Firefox with the language set to en and inspect the WebSocket requests and reconnect behavior in dev tools. Trace where the selected language and service errors are handled, then verify that unsupported identifiers no longer cause an infinite reconnect loop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100