The following alert is fired in my app, but JSON.stringify(err) is always “”. Is there any way for me to understand what is triggering this exception?
$.connection.hub.error(function (err) {
alert("Error signalR:" + JSON.stringify(err));
});
If you set the built in SignalR debuging to true, then it should give you some additional information in the browser console.
e.g.
Also I would use Google Chrome or FireFox when debuging and add the error to the console via:
Note though that this will break the code in other browsers that do not support
console.log();So you might want to take this a step further and use a custom log function. Take a look at Paul Irish’slog()plugin which gives you a cross browser log function.