microsoft / microsoft/BotFramework-DirectLineJS

networkInformation: Switching network type, then switching back again, results in RECONNECT_REJECTED

Open
#416 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
199
Forks
133
PR merge metrics
No merged PRs in 30d

Description

Version: v0.15.5

Steps to reproduce:
  1. Within the networkInformation object, set the type to "wifi". Wait for connection to resume as expected.
  2. Within the networkInformation object, set the type to "cellular". Wait for connection to resume as expected.
  3. Within the networkInformation object, set the type to "wifi".

Then, Observe:

  1. After attempting a reconnection to "wifi" for the second time, a DIRECT_LINE/RECONNECT_REJECTED error is thrown, with a payload of: Error: Failed to reconnect. DirectLineJS returned 4.\n at reconnectSaga$
  2. The webchat ui is disabled, while displaying an "Unable to Connect" error message.

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

Reproduce the sequence in v0.15.5 by changing the networkInformation type from wifi to cellular and back to wifi. Start at the reconnectSaga$ location shown in the error and trace the network-type transition handling. Done means the second switch back to wifi reconnects without RECONNECT_REJECTED and the Web Chat UI does not become disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
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.