WebSocket Connection Error in GraphBot SPFx Extension
See original GitHub issueScreenshots
Version
To determine what version of Web Chat you are running, open your browser’s development tools, and paste the following line of code into the console.
[].map.call(document.head.querySelectorAll('meta[name^="botframework-"]'), function (meta) { return meta.outerHTML; }).join('\n')
If you are using Web Chat outside of a browser, please specify your hosting environment. For example, React Native on iOS, Cordova on Android, SharePoint, PowerApps, etc.
Describe the bug
I have the Microsoft GraphBot extention running in the SPFx site. I am facing an issue with WebSocket here is the issue in console error WebSocket connection to wss://directline.botframework.com/v3/directline/conversations/conversation-id/stream-watermark’ failed: Error during WebSocket handshake: Unexpected response code: 403
After the error in console we are losing the conversation history. Its throwing an error in directLine.ts file at line: 682. const ws = new WebSocket(this.streamUrl);
Please help me out to resolve it. I have search all but no results.
Steps to reproduce
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior
Additional context
[Bug]
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Thanks for the support Dana V…!
I have resolved the issue in other way by enabling the WebSocket as true. Storing the conversation history in local storage and retrieving it back on some click events.
Its working for me perfectly…!
Hi @uppalapraveen We haven’t heard back from you in some time. If you are still having this problem, please reopen the issue and address the questions we have posed. Thanks, and have a great day!