Getting error while calling Search rest API "{[Errors, An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.]}

We have integrated Telligent in Sitecore application through REST API. Now we are trying to develop Search functionality but we got unexpected error and not able to get the search result.

Below is the code,

var host = new ClientCredentialsRestHost(Context.User.LocalName, Settings.GetSetting("CommunityUrl"), Settings.GetSetting("ClientId"), Settings.GetSetting("ClientSecret"));
var withingOptions = new NameValueCollection
{
    {"Query", "disscussion" },
    {"Category", "forum"},
};
var endpoint = "search.json?" + ParseQueryString(withingOptions);
var response = host.GetToDynamic(2, endpoint);

In response we are getting below error,

"{[Errors, An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.]}

Is there any setting we need to do in community to access Search results? Can anyone please help us? 

It would be great if someone can share a sample code of implementing Search REST API in web application.

Parents Reply Children
  • Hey there!

    We only offer support for the free version through these forums. Support tickets and interacting with our Support team comes with a paid license.

    It sounds like without any obvious exceptions, it would be difficult for us to determine what is going on. Since you're trying to integrate to Sitecore, you may be better suited with a full version of our product to ensure you are getting all the functionality you may need! 

    Are you planning on continuing to use the free version or is this for a proof of concept or other type of project?

    Thank you!

  • Hi Grant,

    Actually we earlier had communicated with Telligent team regarding our requirement, so as per team suggestion our requirements fits for trial version. Because we are using very limited functionality like one forum only. We almost integrated all forum functionality with telligent REST api.

    Now we are trying to implement Search functionality with minimal requirement i:e user can search all post of forum. But we are getting the error which was mentioned in the post. Basically we are not able to communicate with Telligent using those search REST api.

    It would be great if anyone from the community just tell us some points which will help us to debug these issue.

     one things to highlight i am not able to see any document indexed into both solr indexes. Is there any way to update index from Telligent community? Does it might be root cause of error which i am getting for search REST api?

  • That means there either is no content, or your job server is not running, as there was no errors as previously mentioned