WanderLost icon indicating copy to clipboard operation
WanderLost copied to clipboard

Unhandled exception

Open leowest77 opened this issue 2 years ago • 5 comments

I keep getting this error and these images, can u advise me on what to do?

image image

WebSocket connection to 'wss://hub.lostmerchants.com:15555/MerchantHub' failed: 
Ca @ dotnet.7.0.5.eztd5jwcvz.js:2
 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: net_webstatus_ConnectFailure
System.Net.WebSockets.WebSocketException (0x80004005): net_webstatus_ConnectFailure
 ---> WebSocket error
   at System.Net.WebSockets.BrowserWebSocket.CancelationHelper(Task , CancellationToken , WebSocketState )
   at System.Net.WebSockets.BrowserWebSocket.ConnectAsyncCore(Uri , List`1 , CancellationToken )
   at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri , HttpMessageInvoker , CancellationToken )
   at Microsoft.AspNetCore.Http.Connections.Client.Internal.WebSocketsTransport.DefaultWebSocketFactory(WebSocketConnectionContext context, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.Internal.WebSocketsTransport.StartAsync(Uri url, TransferFormat transferFormat, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartTransport(Uri connectUrl, HttpTransportType transportType, TransferFormat transferFormat, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken)
   at WanderLost.Client.Services.MerchantHubClient.Connect()
   at WanderLost.Client.Pages.Merchants.OnInitializedAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )
u @ blazor.webassembly.js:1

leowest77 avatar Jun 13 '23 17:06 leowest77

Do you get a mostly blank page when you hit https://hub.lostmerchants.com:15555/MerchantHub? It should just say something like "connection ID required".

Xeio avatar Jun 13 '23 18:06 Xeio

it says exactly that

image

leowest77 avatar Jun 16 '23 04:06 leowest77

Hmm, strange, means something is going wrong with the connection for the web socket, but you can hit the endpoint directly which implies there shouldn't actually be anything wrong with the connection. 🤔

Xeio avatar Jun 16 '23 05:06 Xeio

mmm any suggestions of what I could try?

leowest77 avatar Jun 17 '23 22:06 leowest77

Could try a different browser to see if anything changes, or a different device on the same network.

Xeio avatar Jun 19 '23 18:06 Xeio