I have algolia integrated with magento 2 site , suddenly algolia is throwing error on product listing page and search page.
Error is about Server connection time out !
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Finally I got the solution for this issue!! The issue was due to my server's slow connection with algolia server. Algolia search by default uses 1s connection timeout, which I increased to 10 seconds, solved my issue.
To change timeout to 10s we need to edit below file by overriding it:
// connect timeout of 1s by default $this->connectTimeout = 10; // global timeout of 30s by default $this->readTimeout = 30; // search timeout of 5s by default $this->searchTimeout = 10;