microsoft / microsoft/BotFramework-WebChat

"conversation ended" error which leads to send failed error for user message

Open
#4,998 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services bug customer-reported
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

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?

NPM

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Platform: iOS/iPadOS

Which area does this issue affect?

Protocol or service

What is the public URL for the website?

https://healo.infiheal.com/

Please describe the bug

Inside Safari browser in IOS, when I open the keyboard I can see the "conversation ended" error using Xcode with Webinspect, then if I send a message it is not sent or arbitrarily gets sent and shows "Send Faliled Retry".
WhatsApp Image 2023-12-31 at 01 35 35_aafa06f8
WhatsApp Image 2023-12-31 at 01 35 35_e374ef86

Do you see any errors in console log?
Uncaught Error: conversation ended
    at ./node_modules/botframework-directlinejs/lib/directLine.js (directLine.ts:435:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./node_modules/botframework-webchat/lib/createDirectLine.js (createDirectLine.ts:1:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./node_modules/botframework-webchat/lib/index-minimal.js (index-minimal.ts:24:1)
    at options.factory (react refresh:6:1)
How to reproduce the issue?

1.go to the url https://healo.infiheal.com/ in an iphone 12
2.Scrolldown to see the type box and tap on it to type
3.See error in console

What do you expect?

It should not give the uncaught error "conversation ended".

What actually happened?

The error comes in console whenever I try to open the keyboard to type and message send fails
WhatsApp Image 2023-12-30 at 23 19 37_0b8e5109

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

No response

Adaptive Card JSON

No response

Additional context

We are using the npm package botframework-webchat to integrate the bot ui in react frontend.

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 issue at https://healo.infiheal.com/ in iPhone 12 Safari by opening the keyboard and sending a message. Then inspect the reported directLine.ts line 435 stack and createDirectLine.ts entry point; done means opening the keyboard no longer produces the uncaught error and messages send reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.