microsoft / microsoft/BotFramework-WebChat

[Tracking] DLS: Using in Firefox put Web Socket in infinite reconnection loop

Open
#2,672 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area-direct-line-speech blocked bug external-cognitive-services
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.

  1. Open Firefox (or any browsers)
  2. Make sure the language is en, instead of en-US (Firefox default to en)
  3. Open dev tools, go to network tab
  4. Open 06.i.direct-line-speech sample

Expected behavior

It error out once or twice. Then stop.

Additional context

[Bug]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.