Elasticsearch-Inside icon indicating copy to clipboard operation
Elasticsearch-Inside copied to clipboard

timeout exception

Open armadilo opened this issue 6 years ago • 3 comments

Hi,

Every time I'm trying to do this:

Elasticsearch = new ElasticsearchInside.Elasticsearch();
await Elasticsearch.Ready();

The Ready() function throw an exception of task cancell timeout exception.

Why is that happening? any help?

armadilo avatar Jun 27 '18 15:06 armadilo

I think there is a hardcoded timeout and if ES does not return response 200 OK within 30s, task gets cancelled. https://github.com/poulfoged/Elasticsearch-Inside/blob/db5bc02fecb6e27b2690bb73472806e02d9fc4ef/source/ElasticsearchInside/Elasticsearch.cs#L136

@poulfoged Is there a chance to make the timeout configurable? I'm happy to come up with MR if it works for you.

dudluk avatar Jan 24 '19 09:01 dudluk

Sure, I'd be happy to get a MR :)

poulfoged avatar Jan 24 '19 09:01 poulfoged

#21 solved my timeout issue

amccool avatar May 17 '19 05:05 amccool