Welcome! Log In Create A New Profile

Advanced

Sub-Filter auf SignalR ASP.NET Core Hub

Anonymous User
March 09, 2020 07:58AM
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.



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Sub-Filter auf SignalR ASP.NET Core Hub

Anonymous User March 09, 2020 07:58AM

Re: Sub-Filter auf SignalR ASP.NET Core Hub

Francis Daly March 11, 2020 08:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready