Skip to content
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

Error running simple query #3

Open
mrnosal opened this issue Oct 12, 2011 · 1 comment
Open

Error running simple query #3

mrnosal opened this issue Oct 12, 2011 · 1 comment

Comments

@mrnosal
Copy link
Contributor

mrnosal commented Oct 12, 2011

(In develop branch)
Create a simple graphical query. Drag in "demographics" and select age from 10-100, gender=male
Then click "Execute"

Mongo::OperationFailure (Database command '$eval' failed: (errno: '-3.0'; errmsg: 'invoke failed: JS Error: ReferenceError: mnosal is not defined nofile_a:0'; ok: '0.0').):

Mongo::OperationFailure in QueriesController#execute

Database command '$eval' failed: (errno: '-3.0'; errmsg: 'invoke failed: JS Error: ReferenceError: mnosal is not defined nofile_a:0'; ok: '0.0').

app/models/user.rb:92:in save_library_functions_locally' app/models/execution.rb:23:inblock in execute'
app/models/execution.rb:21:in execute' app/models/query.rb:23:inexecute'
app/controllers/queries_controller.rb:76:in `execute'

@abgoldstein
Copy link
Collaborator

Were you able to execute generated queries before? Or is this the first one? I'm not able to reproduce the error by making that kind of query, but it looks like we're trying to pull in user defined JS functions even when aggregating generated queries.

I've deleted line 128 "user_code = js_to_localize_user_functions(query.user)" from execution.rb. The tests pass so I pushed up to hquery/develop but since I can't reproduce the issue I can't see if this is a proper solution, but could you check and let me know?

drusk referenced this issue in drusk/query-composer Jun 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants