algolia / algoliasearch-client-android

Algolia Search API Client for Android
MIT License
99 stars 29 forks source link

Getting exception - Error while reading stream: thread interrupted #579

Open passiondroid opened 5 years ago

passiondroid commented 5 years ago

Describe the bug 🐛 Getting below exception very frequently com.algolia.search.saas.AlgoliaException: Error while reading stream: thread interrupted at com.algolia.search.saas.AbstractClient._toByteArray(AbstractClient.java:472) at com.algolia.search.saas.AbstractClient._requestRaw(AbstractClient.java:632) at com.algolia.search.saas.AbstractClient.postRequestRaw(AbstractClient.java:425) at com.algolia.search.saas.Index.searchRaw(Index.java:1383) at com.algolia.search.saas.Index.search(Index.java:1355) at com.algolia.search.saas.Index.searchSync(Index.java:139) at com.algolia.search.saas.Index.searchSync(Index.java:148)

To Reproduce 🔍 Steps to reproduce the behavior: Start sending multiple requests for keywords very fast

Expected behavior 💭 thread interrupted should be handled.

PLNech commented 5 years ago

Hi @passiondroid, thanks for reporting this bug and sorry for the inconvenience it caused!

I have a hard time replicating it by typing fast in a SearchBox. Can you give more details on when it happens:

Thanks for your help, looking forward to finding the root cause of this!