Take the 2-minute tour ×

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));
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

If you set the built in SignalR debuging to true, then it should give you some additional information in the browser console.


$.connection.hub.logging = true;

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's log() plugin which gives you a cross browser log function.

share|improve this answer
add comment

Your Answer


