ElasticSearch: output timeout and JSON errors