2

I'm trying to use SignalR for the real time notifications, but I have a problem.

The generated script hub file is empty. I have the error at the client:

jquery.signalR-2.4.1.min.js:9 Uncaught Error: SignalR: Error loading hubs.
Ensure your hubs reference is correct, e.g. .

When debugging the calls I saw that, the assembly of the script content is created well (image 1, 2).

But when I try to convert it to binary (var bytes = Encoding.UTF8.GetBytes(data)) in the ResponseExtensions class (Microsoft.AspNet.SignalR.Hosting) the result is empty (image 3).

In the attached screenshots you can see the content and post conversion.

Image 1

Image 2

Image 3

Does anyone know what the problem will be? Thank you in advance

Peter Csala
  • 17,736
  • 16
  • 35
  • 75
omelmahi
  • 21
  • 3
  • I've already found the problem. The problem comes from the gzip compression we use in the application. – omelmahi Jul 01 '20 at 07:09

0 Answers0