# Node.js client timeout doesn't work (for me)

**URL:** <https://discuss.elastic.co/t/node-js-client-timeout-doesnt-work-for-me/22130>\
**Category:** Elasticsearch\
**Created:** [February 12, 2015, 10:10am UTC](https://discuss.elastic.co/t/node-js-client-timeout-doesnt-work-for-me/22130 "2015-02-12T10:10:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [February 12, 2015, 10:10am UTC](https://discuss.elastic.co/t/node-js-client-timeout-doesnt-work-for-me/22130/1 "2015-02-12T10:10:14Z")

</div>

hi guys,

i wonder if someone had the same problem.  
i have a heavy query, with complicated script, and i want to give this  
query larger timeout.

but no matter, what number i put there, the timeout happens after 30  
seconds.

here is the code:

var queryBegin = moment();

_client.search({ index: strIndices, type: "xxx", ignoreUnavailable: true, timeout: 600000, body: body}, function (error, response) { var queryEnd = moment(); console.log("query callback. duration: " +(queryEnd-queryBegin) + **" ms "** );_

and the console shows:

_getDroppingConversion callback. duration: 30009 ms  
Request Timeout after 30000ms_

thanks a lot

Lior

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cdd23d99-9e1d-40b0-bfd5-7ba5657bc0c9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cdd23d99-9e1d-40b0-bfd5-7ba5657bc0c9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:33am UTC](https://discuss.elastic.co/t/node-js-client-timeout-doesnt-work-for-me/22130/2 "2017-07-06T00:33:10Z")

</div>


