Null_pointer_exception 500 error

I am getting below error in Heroku when i deployed my code. Please help me
Heroku Redis : Redis Premium 0
<- 500
{
2017-10-03T07:51:58.485013+00:00 app[web.2]: "error": {
2017-10-03T07:51:58.485014+00:00 app[web.2]: "root_cause": [
2017-10-03T07:51:58.485014+00:00 app[web.2]: {
2017-10-03T07:51:58.485015+00:00 app[web.2]: "type": "null_pointer_exception",
2017-10-03T07:51:58.485015+00:00 app[web.2]: "reason": null
2017-10-03T07:51:58.485016+00:00 app[web.2]: }
2017-10-03T07:51:58.485016+00:00 app[web.2]: ],
2017-10-03T07:51:58.485017+00:00 app[web.2]: "type": "null_pointer_exception",
2017-10-03T07:51:58.485018+00:00 app[web.2]: "reason": null
2017-10-03T07:51:58.485018+00:00 app[web.2]: },
2017-10-03T07:51:58.485019+00:00 app[web.2]: "status": 500
2017-10-03T07:51:58.485020+00:00 app[web.2]: }
2017-10-03T07:51:58.485020+00:00 app[web.2]:
2017-10-03T07:51:58.485257+00:00 app[web.2]: Elasticsearch DEBUG: 2017-10-03T07:51:58Z
2017-10-03T07:51:58.485259+00:00 app[web.2]: Request complete
2017-10-03T07:51:58.485260+00:00 app[web.2]:
2017-10-03T07:51:58.490556+00:00 app[web.2]: error: error: {"msg":"[null_pointer_exception] null","path":"/_bulk","query":{},"body":"","statusCode":500,"response":"{"error":{"root_cause":[{"type":"null_pointer_exception","reason":null}],"type":"null_pointer_exception","reason":null},"status":500}"} module=indexer.js

Setting for my indexer is below : https://BONSAI URL/searchindex/item/_settings

{
"analysis": {
"char_filter": {
"replace": {
"type": "mapping",
"mappings": [
"&=> and "
]
}
},
"filter": {
"word_delimiter" : {
"type" : "word_delimiter",
"split_on_numerics" : false,
"split_on_case_change" : true,
"generate_word_parts" : true,
"generate_number_parts" : true,
"catenate_all" : true,
"preserve_original":true,
"catenate_numbers":true
}
},
"analyzer": {
"default": {
"type": "custom",
"char_filter": [
"html_strip",
"replace"
],
"tokenizer": "whitespace",
"filter": [
"lowercase",
"word_delimiter"
]
}
}
}
}
Mapping for my indexer :
https://BONSAI URL/searchindex/item/_mapping

{
"analysis": {
"char_filter": {
"replace": {
"type": "mapping",
"mappings": [
"&=> and "
]
}
},
"filter": {
"word_delimiter" : {
"type" : "word_delimiter",
"split_on_numerics" : false,
"split_on_case_change" : true,
"generate_word_parts" : true,
"generate_number_parts" : true,
"catenate_all" : true,
"preserve_original":true,
"catenate_numbers":true
}
},
"analyzer": {
"default": {
"type": "custom",
"char_filter": [
"html_strip",
"replace"
],
"tokenizer": "whitespace",
"filter": [
"lowercase",
"word_delimiter"
]
}
}
}
}

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Your application is sending empty bulk request apparently. You need to fix your code I believe.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.