Open ralfschimmel opened 11 years ago
The issue is the JS client is not reporting a backtrace. Note this snippet from the request parameters:
[{"name"=>"Active Thread", "faulted"=>true, "backtrace"=>nil}]
Not sure if it's an actual bug in the JS client, or if it's a weird browser quirk, or something to do with the way you are catching the exception.
The exception is thrown using a setTimeout in the console just for testing, I did not change anything to the catching mechanism.
var error = new Error("Test JavaScript error!");
throw(error);
This might not give a backtrace though, which can result in nil?
Are you using the latest version of the Squash Javascript library? Looking at the client.coffee file, it seems like there is no possibly way for it to be nil.
Yeah, just checked but 'git pull' tells me I'm up-to-date.
OK, you'll probably have to do some debugging then. You can edit the client.coffee file and add some console.debug
s to help figure out what's wrong. The notify
method would be where to check. It's fairly straightforward.
I'll give it a go, cheers so far.
Included the javascript plugin in my application, enabled CORS in squash and triggered an Error. The following was the result in the log: