[annotator-dev] problems with latest version of annotator / annotator-store

Kristof Csillag csillag at hypothes.is
Thu Jul 11 14:24:54 UTC 2013


Going back to rev a690a3e2e7b4b5477614c53e0 on the store end (which was
committed 8 days ago) solves this.
Looks like this broke very recently.

On 2013-07-11 15:59, Kristof Csillag wrote:
> Hi,
>
> I am working with latest annotator and annotator-store with OKFN.
> While trying to view dev.html (either locally, or served up on the :4000
> port), I can not load any annotations, and get this on the console, from
> the store:
>
>
> -------------------------------
> Traceback (most recent call last):
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
> line 1701, in __call__
>     return self.wsgi_app(environ, start_response)
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
> line 1689, in wsgi_app
>     response = self.make_response(self.handle_exception(e))
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
> line 1687, in wsgi_app
>     response = self.full_dispatch_request()
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
> line 1360, in full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
> line 1358, in full_dispatch_request
>     rv = self.dispatch_request()
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
> line 1344, in dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/annotator/store.py",
> line 246, in search_annotations
>     results = Annotation.search(**kwargs)
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/annotator/elasticsearch.py",
> line 126, in search
>     q = cls._build_query(**kwargs)
>   File
> "/mnt/user_data/home/csillag/upstream-testing/annotator-store/annotator/annotation.py",
> line 81, in _build_query
>     term_filter = q['query']['filtered']['query']['filtered']['filter']
> KeyError: 'filtered'
> -----------------------------------------
>
> What am I doing wrong?
> Is this expected?
>
>    Kristof
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20130711/b6da3861/attachment-0002.html>


More information about the annotator-dev mailing list