# Is there an event handler for Retries within the NEST client?

**URL:** <https://discuss.elastic.co/t/is-there-an-event-handler-for-retries-within-the-nest-client/251951>\
**Category:** Elasticsearch\
**Created:** [October 13, 2020, 6:50pm UTC](https://discuss.elastic.co/t/is-there-an-event-handler-for-retries-within-the-nest-client/251951 "2020-10-13T18:50:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astanton1978](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@astanton1978](https://discuss.elastic.co/u/astanton1978)\
**Post date:** [October 13, 2020, 6:50pm UTC](https://discuss.elastic.co/t/is-there-an-event-handler-for-retries-within-the-nest-client/251951/1 "2020-10-13T18:50:26Z")

</div>

We are getting frequent request timeouts and have specified...

- throw exceptions
- disable direct streaming
- a 2 minute request timeout
- up to 5 retries
- a max retry timeout of 10 minutes

... on the client and are executing an xpack/sql style query via`QuerySqlAsync()`. The logs show that after 2 minutes the overall operation aborts. I would expect to see that after ~10 minutes if all the requests that are retried timeout. It does not look like there is any retry happening. Is there an event handler that is fired on Retry that I can attach a listener to?

Is there anything in the settings I've listed above that seems to be incorrect? I read the docs page for it a few times but still may be missing something.

---

<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:** [November 10, 2020, 6:50pm UTC](https://discuss.elastic.co/t/is-there-an-event-handler-for-retries-within-the-nest-client/251951/2 "2020-11-10T18:50:29Z")

</div>

Closed on November 10, 2020, 6:50pm UTC

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