Tuesday, March 21, 2017

How to deal with proxy restriction problems when using a search API like Algolia?

I am currently building an app using Laravel 5, I also have decided to integrate the Algolia search API for easy, quick and effective searches.
I am using the search API for the posts of my app. The problem is that when under an internet connection that is restricted through proxy the API won't respond throwing a "Host unreachable: could not resolve host" exception. Also, as the API "listens" for any changes in the searched model, the same exception will be triggered when trying to alter the searched model in any way, resulting in an unpleasant experience for users that browse behind a proxy. How do you, more experienced would deal with such problem?



via Nelutu Fona

Advertisement