# Thrift transport hangs when requesting bogus URL?

**URL:** <https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905>\
**Category:** Elasticsearch\
**Created:** [November 17, 2011, 9:49pm UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905 "2011-11-17T21:49:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_A\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_a_brown/32/2699_2.png) [@Matthew\_A\_Brown](https://discuss.elastic.co/u/Matthew_A_Brown)\
**Post date:** [November 17, 2011, 9:49pm UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/1 "2011-11-17T21:49:29Z")

</div>

Hi all,

I'm just starting to play around with ES over Thrift, so this may be  
something I'm doing wrong. But I've found that if I make a request to  
a path that doesn't exist in ES, e.g. '/bogus-index', the request just  
hangs indefinitely. Is this a bug?

Thanks!  
Mat

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 20, 2011, 8:08am UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/2 "2011-11-20T08:08:10Z")

</div>

Might be, have you tried with http and you do get a response?

On Thu, Nov 17, 2011 at 11:49 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:

> Hi all,
> 
> I'm just starting to play around with ES over Thrift, so this may be  
> something I'm doing wrong. But I've found that if I make a request to  
> a path that doesn't exist in ES, e.g. '/bogus-index', the request just  
> hangs indefinitely. Is this a bug?
> 
> Thanks!  
> Mat

---

<div class="post-metadata">

**Author:** ![Matthew\_A\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_a_brown/32/2699_2.png) [@Matthew\_A\_Brown](https://discuss.elastic.co/u/Matthew_A_Brown)\
**Post date:** [November 20, 2011, 5:03pm UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/3 "2011-11-20T17:03:12Z")

</div>

Yes, the equivalent request in HTTP returns a not found response immediately.

On Sun, Nov 20, 2011 at 03:08, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Might be, have you tried with http and you do get a response?
> 
> On Thu, Nov 17, 2011 at 11:49 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)  
> wrote:
> 
> > Hi all,
> > 
> > I'm just starting to play around with ES over Thrift, so this may be  
> > something I'm doing wrong. But I've found that if I make a request to  
> > a path that doesn't exist in ES, e.g. '/bogus-index', the request just  
> > hangs indefinitely. Is this a bug?
> > 
> > Thanks!  
> > Mat

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 20, 2011, 6:26pm UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/4 "2011-11-20T18:26:09Z")

</div>

What is the specific request that you execute, I would like to test it.

On Sun, Nov 20, 2011 at 7:03 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:

> Yes, the equivalent request in HTTP returns a not found response  
> immediately.
> 
> On Sun, Nov 20, 2011 at 03:08, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Might be, have you tried with http and you do get a response?
> > 
> > On Thu, Nov 17, 2011 at 11:49 PM, Matthew A. Brown \<  
> > [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)\>  
> > wrote:
> > 
> > > Hi all,
> > > 
> > > I'm just starting to play around with ES over Thrift, so this may be  
> > > something I'm doing wrong. But I've found that if I make a request to  
> > > a path that doesn't exist in ES, e.g. '/bogus-index', the request just  
> > > hangs indefinitely. Is this a bug?
> > > 
> > > Thanks!  
> > > Mat

---

<div class="post-metadata">

**Author:** ![Matthew\_A\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_a_brown/32/2699_2.png) [@Matthew\_A\_Brown](https://discuss.elastic.co/u/Matthew_A_Brown)\
**Post date:** [November 20, 2011, 8:39pm UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/5 "2011-11-20T20:39:17Z")

</div>

I don't have it in front of me, but I think it was a GET request for the  
URL "/bogus"  
On Nov 20, 2011 1:26 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> What is the specific request that you execute, I would like to test it.
> 
> On Sun, Nov 20, 2011 at 7:03 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:
> 
> > Yes, the equivalent request in HTTP returns a not found response  
> > immediately.
> > 
> > On Sun, Nov 20, 2011 at 03:08, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > Might be, have you tried with http and you do get a response?
> > > 
> > > On Thu, Nov 17, 2011 at 11:49 PM, Matthew A. Brown \<  
> > > [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)\>  
> > > wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > I'm just starting to play around with ES over Thrift, so this may be  
> > > > something I'm doing wrong. But I've found that if I make a request to  
> > > > a path that doesn't exist in ES, e.g. '/bogus-index', the request just  
> > > > hangs indefinitely. Is this a bug?
> > > > 
> > > > Thanks!  
> > > > Mat

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 22, 2011, 8:44am UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/6 "2011-11-22T08:44:24Z")

</div>

ok, found the problem, opened an issue:  
[Thrift transport handling unexpected URI hangs · Issue #1484 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1484).

On Sun, Nov 20, 2011 at 10:39 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:

> I don't have it in front of me, but I think it was a GET request for the  
> URL "/bogus"  
> On Nov 20, 2011 1:26 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > What is the specific request that you execute, I would like to test it.
> > 
> > On Sun, Nov 20, 2011 at 7:03 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:
> > 
> > > Yes, the equivalent request in HTTP returns a not found response  
> > > immediately.
> > > 
> > > On Sun, Nov 20, 2011 at 03:08, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > > 
> > > > Might be, have you tried with http and you do get a response?
> > > > 
> > > > On Thu, Nov 17, 2011 at 11:49 PM, Matthew A. Brown \<  
> > > > [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)\>  
> > > > wrote:
> > > > 
> > > > > Hi all,
> > > > > 
> > > > > I'm just starting to play around with ES over Thrift, so this may be  
> > > > > something I'm doing wrong. But I've found that if I make a request to  
> > > > > a path that doesn't exist in ES, e.g. '/bogus-index', the request just  
> > > > > hangs indefinitely. Is this a bug?
> > > > > 
> > > > > Thanks!  
> > > > > Mat

---

<div class="post-metadata">

**Author:** ![Matthew\_A\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_a_brown/32/2699_2.png) [@Matthew\_A\_Brown](https://discuss.elastic.co/u/Matthew_A_Brown)\
**Post date:** [November 22, 2011, 1:19pm UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/7 "2011-11-22T13:19:12Z")

</div>

Awesome, thanks!

On Tue, Nov 22, 2011 at 03:44, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> ok, found the problem, opened an  
> issue: [Thrift transport handling unexpected URI hangs · Issue #1484 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1484).
> 
> On Sun, Nov 20, 2011 at 10:39 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)  
> wrote:
> 
> > I don't have it in front of me, but I think it was a GET request for the  
> > URL "/bogus"
> > 
> > On Nov 20, 2011 1:26 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > What is the specific request that you execute, I would like to test it.
> > > 
> > > On Sun, Nov 20, 2011 at 7:03 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)  
> > > wrote:
> > > 
> > > > Yes, the equivalent request in HTTP returns a not found response  
> > > > immediately.
> > > > 
> > > > On Sun, Nov 20, 2011 at 03:08, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > > > 
> > > > > Might be, have you tried with http and you do get a response?
> > > > > 
> > > > > On Thu, Nov 17, 2011 at 11:49 PM, Matthew A. Brown  
> > > > > [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)  
> > > > > wrote:
> > > > > 
> > > > > > Hi all,
> > > > > > 
> > > > > > I'm just starting to play around with ES over Thrift, so this may be  
> > > > > > something I'm doing wrong. But I've found that if I make a request to  
> > > > > > a path that doesn't exist in ES, e.g. '/bogus-index', the request  
> > > > > > just  
> > > > > > hangs indefinitely. Is this a bug?
> > > > > > 
> > > > > > Thanks!  
> > > > > > Mat

---

<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, 3:47am UTC](https://discuss.elastic.co/t/thrift-transport-hangs-when-requesting-bogus-url/5905/8 "2017-07-06T03:47:55Z")

</div>


