question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebSocket Connection Error in GraphBot SPFx Extension

See original GitHub issue

Screenshots

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

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior

Additional context

[Bug]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
uppalapraveencommented, Feb 14, 2020

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…!

0reactions
dmvtechcommented, Feb 7, 2020

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebSocket connection to 'ws://localhost:9090/' failed: Error in ...
I tried to run websocket with the url var wsUri = "ws://localhost:55195/" and it says WebSocket connection to 'ws://localhost:55195/' failed: Have been looking ......
Read more >
Microsoft MVP | SharePoint and Office 365 Solutions Developer
This extension was developed in TypeScript, React, Fluent UI and uses Microsoft Graph API's available to subscribe notifications, read information about changed ...
Read more >
Debug SharePoint Framework solutions on modern ...
Guidance on how to debug SharePoint Framework solutions on modern SharePoint pages.
Read more >
List of all posts - Koskila.net - #SharePointProblems
This page contains a list of all published posts on my blog site. It's a pretty long list, and chances are it's just...
Read more >
Build your own Microsoft Teams using Microsoft Graph Toolkit ...
The Microsoft Graph Toolkit providers enable your application to authenticate with Microsoft Identity and access Microsoft Graph in only few ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found