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

Crash on search #44

Closed
n1k0 opened this issue Jun 7, 2017 · 1 comment
Closed

Crash on search #44

n1k0 opened this issue Jun 7, 2017 · 1 comment
Labels

Comments

@n1k0
Copy link

n1k0 commented Jun 7, 2017

cUrl query:

curl 'https://kinto-ota.dev.mozaws.net/v1/buckets/build-hub/collections/releases/search' -H 'Origin: http://localhost:8000' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Referer: http://localhost:8000/' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"size":0,"query":{"bool":{"must":[]}},"aggregations":{"product_filters":{"source.product":{"terms":{"field":"source.product"}}},"channel_filters":{"target.channel":{"terms":{"field":"target.channel"}}},"platform_filters":{"target.platform":{"terms":{"field":"target.platform"}}},"version_filters":{"target.version":{"terms":{"field":"target.version"}}},"locale_filters":{"target.locale":{"terms":{"field":"target.locale"}}}}}' --compressed
@leplatrem leplatrem added the bug label Jun 9, 2017
@leplatrem
Copy link
Contributor

    response = view(request)
  File "/home/ubuntu/venvs/kinto/local/lib/python3.5/site-packages/cornice/service.py", line 493, in wrapper
    response = view_(request)
  File "/home/ubuntu/venvs/kinto/local/lib/python3.5/site-packages/kinto_elasticsearch/views.py", line 63, in post_search        
    return search_view(request, body=body)
  File "/home/ubuntu/venvs/kinto/local/lib/python3.5/site-packages/kinto_elasticsearch/views.py", line 44, in search_view        
    message = e.info["error"]["reason"]
TypeError: string indices must be integers
[pid: 16075|app: 0|req: 12183/58769] 172.31.13.135 () {54 vars in 904 bytes} [Tue Jun 13 09:58:11 2017] POST /v1/buckets/build-hub/collections/releases/search => generated 177 bytes in 41 msecs (HTTP/1.1 500) 5 headers in 232 bytes (2 switches on core 0)

Could not find aggregator type [source.product]

Caused by: org.elasticsearch.search.SearchParseException: [kinto-build-hub-releases][1]: query[*:*],from[-1],size[0]: Parse Failure [Could not find aggregator type [source.product] in [product_filters]]
        at org.elasticsearch.search.aggregations.AggregatorParsers.parseAggregators(AggregatorParsers.java:146)
        at org.elasticsearch.search.aggregations.AggregatorParsers.parseAggregators(AggregatorParsers.java:78)
        at org.elasticsearch.search.aggregations.AggregationParseElement.parse(AggregationParseElement.java:60)
        at org.elasticsearch.search.SearchService.parseSource(SearchService.java:731)
        ... 9 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants