When I try the following code in development server (Standalone Installation) it work fine.
$.ajax({
url: _spPageContextInfo.webAbsoluteUrl +
"/_api/search/query?querytext='contentclass:sts_site'&selectproperties='Path'&trimduplicates=true&enablesorting=true",
method:
"GET",
headers: {
"accept":"application/json;odata=verbose",
"content-type":"application/json;odata=verbose"
},
Dev URL returns fine.
For the production (2 Front End and 2 Web Serv and 2DB ) with load balancing on front end and SSL implemented the same URL throughs "
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
For more information about HTTP errors, see Help.
"
https://ProdServer/_api/search/query?querytext='contentclass:sts_site'&selectproperties='Path'&trimduplicates=true&enablesorting=true
I am I missing anything?
Thanks Vivek
SharePoint Foundation 2010 Book
http://www.redpipit.com