-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API call from javascript plugin throws error: private method `select' called for nil:NilClass #65
Comments
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.
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 |
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:
The text was updated successfully, but these errors were encountered: