Open CalaisのエンドポイントURLの変更方法について


説明

Open CalaisおよびOpen PermIDアプリケーションのプログラミング インターフェイスの最近の変更に伴い、「Sitecore.ContentTagging.OpenCalais.CalaisEndpoint」設定が手順通りに更新されていない場合、コンテンツのタグ付け機能が動作しなくなる可能性があります。
この場合、タグ アイテムのボタンをクリックすると、エラーメッセージ「タグ付け中にエラーが発生しました」と、以下のHttpRequestExceptionがSitecoreログに出力されます。

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

解決策

Open CalaisエンドポイントのURLを変更するには、下記の手順を実施してください:

  1. \App_Config\Sitecore\Sitecore.ContentTagging.OpenCalais.configファイルを開きます。
  2. 下記に従って、「Sitecore.ContentTagging.OpenCalais.CalaisEndpoint」設定のURLを変更します:
     <setting name="Sitecore.ContentTagging.OpenCalais.CalaisEndpoint" value="https://api-eit.refinitiv.com/permid/calais" />

詳細情報については、「Refinitiv Intelligent Tagging Open Calais を Content Tagging のプロバイダーとして設定する」を参照してください。