Export to GitHub

soc - issue #2572

can't convert falsenode to predicate


Posted on Mar 19, 2015 by Happy Rabbit

Seeing a bunch of these in the logs. Not a huge amount, and not getting any complaints about it, but still might be worth poking at.

E 09:24:51.477 2015-03-18 500 656 B 294ms /gsoc/proposal/list/org/google/gsoc2015?fmt=json&limit=100&idx=0&=1426695891916 IP - NAME [18/Mar/2015:09:24:51 -0700] "GET /gsoc/proposal/list/org/google/gsoc2015?fmt=json&limit=100&idx=0&=1426695891916 HTTP/1.0" 500 656 - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "www.google-melange.com" ms=294 cpu_ms=76 instance=00c61b117c35189423902364cce751a028700afe app_engine_release=1.9.18 W 09:24:51.455 initial generator run_to_queue(query.py:925) raised BadQueryError(Cannot convert FalseNode to predicate) W 09:24:51.455 suspended generator helper(context.py:876) raised BadQueryError(Cannot convert FalseNode to predicate) W 09:24:51.455 suspended generator has_next_async(query.py:1745) raised BadQueryError(Cannot convert FalseNode to predicate) W 09:24:51.455 suspended generator _fetch_page_async(query.py:1349) raised BadQueryError(Cannot convert FalseNode to predicate) E 09:24:51.455 Exception in request: Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/django-1.5/django/core/handlers/base.py", line 113, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/base/data/home/apps/s~google-melange/2-1-20150317.382955467901848399/soc/views/base.py", line 485, in call return self._dispatch(data, check, mutator) File "/base/data/home/apps/s~google-melange/2-1-20150317.382955467901848399/soc/views/base.py", line 437, in _dispatch return self.json(data, check, mutator) File "/base/data/home/apps/s~google-melange/2-1-20150317.382955467901848399/soc/views/base.py", line 137, in json context = self.jsonContext(data, check, mutator) File "/base/data/home/apps/s~google-melange/2-1-20150317.382955467901848399/summerofcode/views/proposal.py", line 712, in jsonContext data, data.ndb_profile).getListData() File "/base/data/home/apps/s~google-melange/2-1-20150317.382955467901848399/summerofcode/templates/proposal_list.py", line 167, in getListData return response_builder.buildNDB() File "/base/data/home/apps/s~google-melange/2-1-20150317.382955467901848399/soc/views/helper/lists.py", line 1514, in buildNDB count, start_cursor=cursor) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/utils.py", line 142, in positional_wrapper return wrapped(*args, **kwds) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py", line 1331, in fetch_page return self.fetch_page_async(page_size, **q_options).get_result() File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py", line 325, in get_result self.check_success() File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py", line 368, in _help_tasklet_along value = gen.throw(exc.class, exc, tb) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py", line 1349, in _fetch_page_async while (yield it.has_next_async()): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py", line 368, in _help_tasklet_along value = gen.throw(exc.class, exc, tb) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py", line 1745, in has_next_async yield self._fut File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/context.py", line 876, in helper batch, i, ent = yield inq.getq() File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py", line 935, in run_to_queue dsquery = self._get_query(conn) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py", line 908, in _get_query filters = filters._to_filter() File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py", line 425, in _to_filter 'Cannot convert FalseNode to predicate') BadQueryError: Cannot convert FalseNode to predicate

Comment #1

Posted on Mar 21, 2015 by Quick Monkey

This happens for those nasty ones who're trying to access the page but they're not really mentors.

Now I see there's even TODO: # TODO(daniel): this is accessible to all people with non-student profiles. # it is fine, because it will list nothing to users who are not actual mentors # but maybe this should be visible to actual mentors?

I thought that

query = proposal_model.Proposal.query( proposal_model.Proposal.organization.IN(profile.mentor_for))

Would yield no results for the empty list. Apparently, it is not true :)

Comment #2

Posted on Mar 23, 2015 by Happy Rabbit

Fixed in 20150323

Status: Fixed

Labels:
Type-Defect Priority-Low Milestone-GSoC Effort-Trivial