microsoft / microsoft/BotFramework-WebChat
"conversation ended" error which leads to send failed error for user message
Nobody has claimed this yet.
- 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?
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".
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
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
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
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