Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

SignalR integration with EpiServer CMS

Vote:
 

Hello,

I am trying to integrate SignalR with EpiServer CMS Solution but it is failing to create connection with Hub.

everytime i try it gives me this error at console log...

" Error during negotiation request."

Tried clear the .NET temporary files but no success

Regards,

Rajesh K

#198540
Oct 30, 2018 16:40
Vote:
 

what's happening on the server? when you enable more loggging? we are running this combination without any issues

#198562
Oct 31, 2018 9:11
Vote:
 

It gives me below error (from browser Developer Tools, Network Tab Details):

  1. Request URL:
    http://d75v4760/signalr/hubs/negotiate/?clientProtocol=1.5&connectionData=%5B%5D&_=1540976247669
  2. Request Method:
    GET
  3. Status Code:
    400 Bad Request
  4. Remote Address:
    10.201.35.128:80
  5. Referrer Policy:
    no-referrer-when-downgrade

Response: Protocol error: Unknown transport.

#198598
Oct 31, 2018 15:34
Vote:
 

it doesn't loook right. transport is missing. what client library are you using to connect to hub?

below initial request in our case (note transport mode):

wss://XXX/signalr/connect?transport=webSockets&clientProtocol=1.5&version=3.1.878.0&connectionToken=uRCyou....&connectionData=%5B%7B%22name%22%3A%22...%22%7D%5D&tid=3

#198615
Edited, Nov 01, 2018 8:22
Vote:
 

The fix has been applied.

It was URL Rewrite rules (in web config) which was the problem.

#200043
Dec 27, 2018 12:41
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.