Sub-Filter auf SignalR ASP.NET Core Hub
s.schabbach at fluent-software.de
s.schabbach at fluent-software.de
Mon Mar 9 11:56:33 UTC 2020
Hey,
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.
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.
The same procedure I use for several services, where the location is “xxx-service”.
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.
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.
But these results in the following error:
[2020-03-09T10:38:26.393Z] Information: Normalizing '/webui/hub' to 'https://helitest.fluent-software.de:9003/webui/hub'. <webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js> Utils.js:204:39
Firefox kann keine Verbindung zu dem Server unter wss://helitest.fluent-software.de:9003/webui/hub?id=5usy9hS6jVcGhNuk5ig5cA aufbauen. <webpack://node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js> WebSocketTransport.js:88:32
[2020-03-09T10:38:27.071Z] Error: Failed to start the transport 'WebSockets': Error: There was an error with the transport. <webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js> Utils.js:198:39
[2020-03-09T10:38:42.158Z] Information: SSE connected to https://helitest.fluent-software.de:9003/webui/hub?id=a6T9oscwfbe-l0CRzOvCtw <webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js> Utils.js:204:39
[2020-03-09T10:38:42.175Z] Error: Connection disconnected with error 'Error: Server returned handshake error: Handshake was canceled.'. <webpack://node_modules/@microsoft/signalr/dist/esm/Utils.js> Utils.js:198:39
Error: Server returned handshake error: Handshake was canceled.
In the Access log I see an 404 Error, but don’t know how to handle them:
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"
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"
Any ideas how to solve that?
Kind regards,
Sebastian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200309/626fdb1d/attachment.htm>
More information about the nginx
mailing list