Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

HTTP 500 Internal Server Error "/_api/search/query?querytext

$
0
0

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.

http://DevServer/_api/search/query?querytext='contentclass:sts_site'&selectproperties='Path'&trimduplicates=true&enablesorting=true

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


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>