When searching for anything else then the common filters, an exception is thrown:
Traceback (most recent call last):
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/chris/Git/mass/mass_server/mass_server/webui/views/sample_search.py", line 102, in sample_search
samples = _build_query_from_form_data(form.data)
File "/Users/chris/Git/mass/mass_server/mass_server/core/utils/pagination_functions.py", line 21, in paginate_function
page_count = ceil(queryset.count()/per_page)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/queryset.py", line 131, in count
return super(QuerySet, self).count(with_limit_and_skip)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/base.py", line 390, in count
return self._cursor.count(with_limit_and_skip=with_limit_and_skip)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/base.py", line 1547, in _cursor
self._cursor_obj = self._collection.find(self._query,
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/base.py", line 1590, in _query
self._mongo_query = self._query_obj.to_query(self._document)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/visitor.py", line 89, in to_query
query = query.accept(QueryCompilerVisitor(document))
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/visitor.py", line 155, in accept
return visitor.visit_query(self)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/visitor.py", line 78, in visit_query
return transform.query(self.document, **query.query)
File "/Users/chris/Git/mass/mass_server/venv_mass/lib/python3.5/site-packages/mongoengine/queryset/transform.py", line 63, in query
raise InvalidQueryError(e)
mongoengine.errors.InvalidQueryError: Cannot resolve field "ip_address"
When searching for anything else then the common filters, an exception is thrown: