Previous Entry Поделиться Next Entry
Sharepoint 2013 REST Search API Request Error
yu_xuan
You try to invoke "_api/search/query?querytext=".
Sharepoint returns Request error "The server encountered an error processing the request. See server logs for more details".



There are some "Method not found" errors in the ULS log:

Exception occured in scope Microsoft.Office.Server.Search.REST.SearchService.query. Exception=System.MissingMethodException: Method not found: 'Microsoft.Office.Server.Search.REST.SearchResult Microsoft.Office.Server.Search.REST.SearchService.Query(System.String, System.String, Boolean, System.Guid, System.String, Int32, Int32, Int32, System.String, Int32, System.String, System.String, System.String, System.String, Boolean, Boolean, Int32, Boolean, Boolean, Boolean, System.String, Boolean, Boolean, System.String, System.Guid, System.String, System.String, Int64, Int32, System.String, System.String, Boolean, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean, System.String, Boolean, Boolean, Int32, System.String)'.  
at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.query_MethodProxy(SearchService target, ClientValueCollection xmlargs, ProxyContext proxyContext)  
at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)  
at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)


Original error: System.MissingMethodException: Method not found: 'Microsoft.Office.Server.Search.REST.SearchResult Microsoft.Office.Server.Search.REST.SearchService.Query(System.String, System.String, Boolean, System.Guid, System.String, Int32, Int32, Int32, System.String, Int32, System.String, System.String, System.String, System.String, Boolean, Boolean, Int32, Boolean, Boolean, Boolean, System.String, Boolean, Boolean, System.String, System.Guid, System.String, System.String, Int64, Int32, System.String, System.String, Boolean, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean, System.String, Boolean, Boolean, Int32, System.String)'.  
at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.query_MethodProxy(SearchService target, ClientValueCollection xmlargs, ProxyContext proxyContext)  
at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)  
at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)


SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [System.MissingMethodException: Method not found: 'Microsoft.Office.Server.Search.REST.SearchResult Microsoft.Office.Server.Search.REST.SearchService.Query(System.String, System.String, Boolean, System.Guid, System.String, Int32, Int32, Int32, System.String, Int32, System.String, System.String, System.String, System.String, Boolean, Boolean, Int32, Boolean, Boolean, Boolean, System.String, Boolean, Boolean, System.String, System.Guid, System.String, System.String, Int64, Int32, System.String, System.String, Boolean, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean, System.String, Boolean, Boolean, Int32, System.String)'.  
at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.query_MethodProxy(SearchService target, ClientValueCollection xmlargs, ProxyContext proxyContext)  
at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)  
at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)]


The fix is pretty simple: you should run Install-SPApplicationContent cmdlet on each WFE server.
Метки:

?

Log in