# Elasticsearch WARNING: Unable to revive connection" at custom kibana plugin

**URL:** <https://discuss.elastic.co/t/elasticsearch-warning-unable-to-revive-connection-at-custom-kibana-plugin/177876>\
**Category:** Kibana\
**Created:** [April 22, 2019, 3:50pm UTC](https://discuss.elastic.co/t/elasticsearch-warning-unable-to-revive-connection-at-custom-kibana-plugin/177876 "2019-04-22T15:50:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterThomas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/masterthomas/32/42765_2.png) [@masterThomas](https://discuss.elastic.co/u/masterThomas)\
**Post date:** [April 22, 2019, 3:50pm UTC](https://discuss.elastic.co/t/elasticsearch-warning-unable-to-revive-connection-at-custom-kibana-plugin/177876/1 "2019-04-22T15:50:15Z")

</div>

hi all,  
writing custom plugin and see this error "Elasticsearch WARNING: 2019-04-22T15:18:41Z  
Unable to revive connection: [http://localhost:9200/](http://localhost:9200/)"  
My elasticsearch.hosts: ["http://my\_ip\_address:9200"] and curl access is ok  
my code is simple:

```
const { Client } = require('@elastic/elasticsearch')
const client = new Client({ node: 'http://my_ip_address:9200' })

server.route({
	path: '/api/restable/',
	method: 'GET',
	async handler(req, h) {
		  client.search({
			index: 'kibana_sample_data_logs',
			body: {
				query: {
					match: {
						"clientip": '9.92.255.88'
					}
				}
			}
		})
	}
});
```

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [April 24, 2019, 6:35pm UTC](https://discuss.elastic.co/t/elasticsearch-warning-unable-to-revive-connection-at-custom-kibana-plugin/177876/2 "2019-04-24T18:35:02Z")

</div>

@spalger can we please get some help?

Thank you!

---

<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:** [May 22, 2019, 6:35pm UTC](https://discuss.elastic.co/t/elasticsearch-warning-unable-to-revive-connection-at-custom-kibana-plugin/177876/3 "2019-05-22T18:35:11Z")

</div>

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