You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/04/03 14:28:00 UTC

[jira] [Commented] (METRON-1497) Rest endpoint '/api/v1/search/search' needs to handle null when elastic search response return null for getAggregations

    [ https://issues.apache.org/jira/browse/METRON-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424094#comment-16424094 ] 

ASF GitHub Bot commented on METRON-1497:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/metron/pull/968


> Rest endpoint '/api/v1/search/search' needs to handle null when elastic search response return null for getAggregations   
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: METRON-1497
>                 URL: https://issues.apache.org/jira/browse/METRON-1497
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Mohan
>            Assignee: Mohan
>            Priority: Major
>
> /api/v1/search/search throws null pointer exception as below when you have fresh deployment with no indices created . 
> {code:java}
> {
>   "timestamp": "2018-03-19 11:42:11",
>   "status": 500,
>   "error": "Internal Server Error",
>   "exception": "java.lang.NullPointerException",
>   "message": "No message available",
>   "path": "/api/v1/search/search"
> }
> {code}
> below is the pay load 
> {code:java}
> {
>     "indices": [],
>     "query": "*",
>     "from": 0,
>     "size": 10,
>     "sort": [
>       {
>         "field": "timestamp",
>         "sortOrder": "desc"
>       }
>     ],
>     "facetFields": []
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)