How to change the Open Calais endpoint URL


Description

Following the recent changes to Open Calais and Open PermID application programming interfaces the Content Tagging functionality might stop working if the "Sitecore.ContentTagging.OpenCalais.CalaisEndpoint" setting was not updated according to the instructions.
In this case, clicking the Tag item button leads to an error message There was an error during tagging and HttpRequestException in Sitecore log records:
ERROR An error occured in CalaisClient
Exception: System.Net.Http.HttpRequestException
Message: Response status code does not indicate success: 502 (Bad Gateway).
Source: System.Net.Http
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Sitecore.ContentTagging.OpenCalais.Client.OpenCalaisClient.RequestJsonTags(String text)
   at Sitecore.ContentTagging.OpenCalais.Providers.OpenCalaisDiscoveryProvider.GetTags(IEnumerable`1 content

Solution

To change the Open Calais endpoint URL:
  1. Open the \App_Config\Sitecore\Sitecore.ContentTagging.OpenCalais.config file.
  2. Change the URL in the "Sitecore.ContentTagging.OpenCalais.CalaisEndpoint" setting as follows:
     <setting name="Sitecore.ContentTagging.OpenCalais.CalaisEndpoint" value="https://api-eit.refinitiv.com/permid/calais" />
For more details, refer to Configure Refinitiv Intelligent Tagging Open Calais as your content tagging provider.