Blazor Server App, when load balanced , then Login is failing
What is the significance of - endpoints.MapBlazorHub(); in startup.cs
Trying to host Blazor server app in http with flux concept of state management, but the app is not working in the load balanced server . It is working in single web server which on top has load balancer server.
Below error I am getting when trying to Login. Is 2 way binding supported with the internal Signal R coming in Blazor Server Project Template.
chrome console error:
---------------------------------------
Failed to load resource: the server responded with a status of 404 (Not Found)
blazor.server.js:1 [2020-10-06T13:59:44.373Z] Error: Failed to start the transport 'LongPolling': Error: Not Found
e.log @ blazor.server.js:1
blazor.server.js:1 [2020-10-06T13:59:44.374Z] Error: Failed to start the connection: Error: Unable to connect to the server with any of the available transports. ServerSentEvents failed: Error: 'ServerSentEvents' does not support Binary. LongPolling failed: Error: Not Found
e.log @ blazor.server.js:1
blazor.server.js:19 [2020-10-06T13:59:44.374Z] Error: Error: Unable to connect to the server with any of the available transports. ServerSentEvents failed: Error: 'ServerSentEvents' does not support Binary. LongPolling failed: Error: Not Found
e.log @ blazor.server.js:19
blazor.server.js:1 Uncaught (in promise) Error: Cannot send data if the connection is not in the 'Connected' State.
at e.send (blazor.server.js:1)
at e.sendMessage (blazor.server.js:1)
at e.sendWithProtocol (blazor.server.js:1)
at blazor.server.js:1
at new Promise (<anonymous>)
at e.invoke (blazor.server.js:1)
at e.<anonymous> (blazor.server.js:19)
at blazor.server.js:19
at Object.next (blazor.server.js:19)
at blazor.server.js:19
---------------------------------------