Azure / azure-signalr

Azure SignalR Service SDK for .NET
https://aka.ms/signalr-service
MIT License
427 stars 101 forks source link

SignalR emulator returns 404 #2018

Closed mojtabacazi closed 3 months ago

mojtabacazi commented 3 months ago

Describe the bug

Running asrs-emulator locally, any request to the localhost:8888 comes back with 404. The backend code error is as follows:

Microsoft.Azure.SignalR.ServiceConnection[2]
      Failed to connect to '(Primary)http://localhost:8888(hub=CommentHub)', will retry after the back off period. Error detail: The server returned status code '404' when status code '101' was expected.. The server returned status code '404' when status code '101' was expected..

To Reproduce

Further technical details

vicancy commented 3 months ago

Emulator supports only serverless mode. The log shows that you are using Azure SignalR SDK which is using default(proxy) mode of Azure SignalR. You don't need the emulator when you are using Azure SignalR SDK, if you want to test locally, you could directly use self-host signalr.