Connection ID required


April 2019


3.1k time


I am trying to build a simple chat application using SignalR with ASP.NET Core 2.0. The problem is that when I want to access one of my hub's url (localhost:5000/chat) I receive as a response: Connection ID required with error code 400. I am using auto generated from template authentication (users are stored in local db).

Here are the following components:



Any help will be really appreciated. If you need any further information - please let me know.

1 answers


The problem was that I have configured the hub at route /chat while my ChatController was also responsible for it. After mapping the hub to different route than the controller's one everything went fine.

I changed this: app.UseSignalR(routes => { routes.MapHub<ChatHub>("chat"); });

To this: app.UseSignalR(routes => { routes.MapHub<ChatHub>("chatter"); });