Reason For Request Timed Out Error In SharePoint Search

Introduction

 
Sometimes while we work on SharePoint search, we may see the "Request timed out" error in the browser even though the search application topology (all search databases) status is fine. As an example, the status shows as below.
 
Reason Of Request Timed Out Error In SharePoint Search
 

Background of the issue (description)

 
Let’s say we have a multi servers farm where all web applications hosted in WFE and all SharePoint service are running in App server. The server topology is as below:
  1. App Server with Search and
  2. WFE server.
We have configured the search service application in the application server and all components of search crawl are happening fine without any errors. However, if we try to search any item from SharePoint web application, the search box will try to continue to search the item but after a long time we will see the error “search query time out error timed”.
 
If we look at the uls log, we can see the below entry.
 
:SearchServiceApplicationProxy::GetQueryHealthMonitoringSettingsForComponents–Error occured: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening to thttp://appserver:32843/db4796fcfe375bd791f98ec5e485999c/SearchService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond :32843 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
 

Solution

 
This is the port connectivity issue between WFE and APP server. Ask your system/network admin team to configure the 808,32843,32844 port in WFE and APP server.
 
Here is the link for SharePoint 2016 port details,
 
https://blogit.create.pt/fabiocarvalho/2017/02/14/sharepoint-2016-tcpip-ports/
 

Summary

 
Thus, in this article, we learned the exact causes of the "Request timed out" error with respect to the SharePoint search and the solution.