<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.message-flex-body
{mso-style-name:message-flex-body;}
span.objectbox
{mso-style-name:objectbox;}
span.frame-link
{mso-style-name:frame-link;}
span.frame-link-filename
{mso-style-name:frame-link-filename;}
span.frame-link-line
{mso-style-name:frame-link-line;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=en-DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hey, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I need your help to solve an issue with the SignalR library. For those of you how do not know: It is a library to establish an bidirectional connection between server and browser in an webapp using javascript. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>On my server I have a multi-application environment, were the web application is resolved using the “webapp” location and then using a reverse proxy to the application running on localhost. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The same procedure I use for several services, where the location is “xxx-service”. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>For fixing the URL’s in the server response, I use several sub_filters to align urls from “/resource” to “/webui/resource” to make links, formulars and so on going to the /webui/ location again.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The same thing I do with the SignalR hub the client connects to. These hub is going to be changed from /hub to /webui/hub. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But these results in the following error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span class=objectbox>[2020-03-09T10:38:26.393Z] Information: Normalizing '/webui/hub' to '<a href="https://helitest.fluent-software.de:9003/webui/hub'" target="_blank" title="https://helitest.fluent-software.de:9003/webui/hub'">https://helitest.fluent-software.de:9003/webui/hub'</a>.</span><span class=message-flex-body> </span><span class=frame-link><a href="webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js"><span class=frame-link-filename><span style='color:blue'>Utils.js</span></span><span class=frame-link-line><span style='color:blue'>:204:39</span></span></a></span><o:p></o:p></p><p class=MsoNormal><span class=objectbox>Firefox kann keine Verbindung zu dem Server unter wss://helitest.fluent-software.de:9003/webui/hub?id=5usy9hS6jVcGhNuk5ig5cA aufbauen.</span><span class=message-flex-body> </span><span class=frame-link><a href="webpack://node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js"><span class=frame-link-filename><span style='color:blue'>WebSocketTransport.js</span></span><span class=frame-link-line><span style='color:blue'>:88:32</span></span></a></span><o:p></o:p></p><p class=MsoNormal><span class=objectbox>[2020-03-09T10:38:27.071Z] Error: Failed to start the transport 'WebSockets': Error: There was an error with the transport.</span><span class=message-flex-body> </span><span class=frame-link><a href="webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js"><span class=frame-link-filename><span style='color:blue'>Utils.js</span></span><span class=frame-link-line><span style='color:blue'>:198:39</span></span></a></span><o:p></o:p></p><p class=MsoNormal><span class=objectbox>[2020-03-09T10:38:42.158Z] Information: SSE connected to <a href="https://helitest.fluent-software.de:9003/webui/hub?id=a6T9oscwfbe-l0CRzOvCtw" target="_blank" title="https://helitest.fluent-software.de:9003/webui/hub?id=a6T9oscwfbe-l0CRzOvCtw">https://helitest.fluent-software.de:9003/webui/hub?id=a6T9oscwfbe-l0CRzOvCtw</a></span><span class=message-flex-body> </span><span class=frame-link><a href="webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js"><span class=frame-link-filename><span style='color:blue'>Utils.js</span></span><span class=frame-link-line><span style='color:blue'>:204:39</span></span></a></span><o:p></o:p></p><p class=MsoNormal><span class=objectbox>[2020-03-09T10:38:42.175Z] Error: Connection disconnected with error 'Error: Server returned handshake error: Handshake was canceled.'.</span><span class=message-flex-body> </span><span class=frame-link><a href="webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js"><span class=frame-link-filename><span style='color:blue'>Utils.js</span></span><span class=frame-link-line><span style='color:blue'>:198:39</span></span></a></span><o:p></o:p></p><p class=MsoNormal><span class=objectbox>Error: Server returned handshake error: Handshake was canceled.</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>In the Access log I see an 404 Error, but don’t know how to handle them:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>192.168.7.242 - - [09/Mar/2020:11:38:42 +0100] "GET /webui/hub?id=a6T9oscwfbe-l0CRzOvCtw HTTP/1.1" 200 80 "https://helitest.fluent-software.de:9003/webui/Orders" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>192.168.7.242 - - [09/Mar/2020:11:38:42 +0100] "POST /webui/hub?id=a6T9oscwfbe-l0CRzOvCtw HTTP/1.1" 404 37 "https://helitest.fluent-software.de:9003/webui/Orders" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Any ideas how to solve that?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Kind regards, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Sebastian.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>