# Elasticsearch Error Exception

**URL:** <https://discuss.elastic.co/t/elasticsearch-error-exception/146825>\
**Category:** Elasticsearch\
**Created:** [August 31, 2018, 8:00am UTC](https://discuss.elastic.co/t/elasticsearch-error-exception/146825 "2018-08-31T08:00:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghulam\_Akbar](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@Ghulam\_Akbar](https://discuss.elastic.co/u/Ghulam_Akbar)\
**Post date:** [August 31, 2018, 8:00am UTC](https://discuss.elastic.co/t/elasticsearch-error-exception/146825/1 "2018-08-31T08:00:12Z")

</div>

Hi,  
These are the version of ElasticSearch & Logstash we are using:

- **Elasticsearch 2.3.1**
- **Logstash 2.3.4**

We got the following error in our application:

```
Message: script_exception: failed to compile groovy script 
File: C:\Nginx1103\html\app_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php
Line: 665

```

**Error Stack trace is:**

#0 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php(644): Elasticsearch\Connections\Connection-\>tryDeserializeError(Array, 'Elasticsearch\C...') #1 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php(607): Elasticsearch\Connections\Connection-\>tryDeserialize500Error(Array) #2 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php(265): Elasticsearch\Connections\Connection-\>process5xxError(Array, Array, Array) #3 C:\Nginx1103\html\app\_name\vendor\react\promise\src\FulfilledPromise.php(25): Elasticsearch\Connections\Connection-\>Elasticsearch\Connections{closure}(Array) #4 C:\Nginx1103\html\app\_name\vendor\guzzlehttp\ringphp\src\Future\CompletedFutureValue.php(55): React\Promise\FulfilledPromise-\>then(Object(Closure), NULL, NULL) #5 C:\Nginx1103\html\app\_name\vendor\guzzlehttp\ringphp\src\Core.php(341): GuzzleHttp\Ring\Future\CompletedFutureValue-\>then(Object(Closure), NULL, NULL) #6 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php(283): GuzzleHttp\Ring\Core::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure)) #7 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php(159): Elasticsearch\Connections\Connection-\>Elasticsearch\Connections{closure}(Array, Object(Elasticsearch\Connections\Connection), Object(Elasticsearch\Transport), Array) #8 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Transport.php(106): Elasticsearch\Connections\Connection-\>performRequest('GET', '/companyindex/c...', Array, Object(stdClass), Array, Object(Elasticsearch\Transport)) #9 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Endpoints\AbstractEndpoint.php(80): Elasticsearch\Transport-\>performRequest('GET', '/companyindex/c...', Array, Object(stdClass), Array) #10 C:\Nginx1103\html\app\_name\vendor\elasticsearch\elasticsearch\src\Elasticsearch\Client.php(1091): Elasticsearch\Endpoints\AbstractEndpoint-\>performRequest() #11 [internal function]: Elasticsearch\Client-\>search(Object(stdClass)) #12 C:\Nginx1103\html\app\_name\vendor\cviebrock\laravel-elasticsearch\src\Manager.php(133): call\_user\_func\_array(Array, Array) #13 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(217): Cviebrock\LaravelElasticsearch\Manager-\>\_\_call('search', Array) #14 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(217): Cviebrock\LaravelElasticsearch\Manager-\>search(Object(stdClass)) #15 C:\Nginx1103\html\app\_name\app\Http\Controllers\Company\CompanyController.php(275): Illuminate\Support\Facades\Facade::\_\_callStatic('search', Array) #16 C:\Nginx1103\html\app\_name\app\Http\Controllers\Company\CompanyController.php(275): Cviebrock\LaravelElasticsearch\Facade::search(Object(stdClass)) #17 C:\Nginx1103\html\app\_name\app\Http\Controllers\Company\CompanyController.php(348): App\Http\Controllers\Company\CompanyController-\>searchrecordelasticquery('refresh') #18 [internal function]: App\Http\Controllers\Company\CompanyController-\>searchcompany() #19 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(80): call\_user\_func\_array(Array, Array) #20 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(146): Illuminate\Routing\Controller-\>callAction('searchcompany', Array) #21 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(94): Illuminate\Routing\ControllerDispatcher-\>call(Object(App\Http\Controllers\Company\CompanyController), Object(Illuminate\Routing\Route), 'searchcompany') #22 [internal function]: Illuminate\Routing\ControllerDispatcher-\>Illuminate\Routing{closure}(Object(Illuminate\Http\Request)) #23 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request)) #24 [internal function]: Illuminate\Routing\Pipeline-\>Illuminate\Routing{closure}(Object(Illuminate\Http\Request)) #25 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(103): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request)) #26 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(96): Illuminate\Pipeline\Pipeline-\>then(Object(Closure)) #27 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(54): Illuminate\Routing\ControllerDispatcher-\>callWithinStack(Object(App\Http\Controllers\Company\CompanyController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'searchcompany') #28 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\Route.php(174): Illuminate\Routing\ControllerDispatcher-\>dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'App\Http\Contro...', 'searchcompany') #29 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\Route.php(140): Illuminate\Routing\Route-\>runController(Object(Illuminate\Http\Request)) #30 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\Router.php(727): Illuminate\Routing\Route-\>run(Object(Illuminate\Http\Request)) #31 [internal function]: Illuminate\Routing\Router-\>Illuminate\Routing{closure}(Object(Illuminate\Http\Request)) #32 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(52): call\_user\_func(Object(Closure), Object(Illuminate\Http\Request)) #33 C:\Nginx1103\html\app\_name\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline-\>Illuminate\Routing{closure}(Object(Illuminate\Http\Request)) #34 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession-\>handle(Object(Illuminate\Http\Request), Object(Closure)) #35

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 28, 2018, 8:00am UTC](https://discuss.elastic.co/t/elasticsearch-error-exception/146825/2 "2018-09-28T08:00:16Z")

</div>

Closed on September 28, 2018, 8:00am UTC

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