Sitecore XP unable to connect to Sitecore XC

The Sitecore Identity Server URL is invalid or missing from your configuration, secure communication with the Commerce Engine is not possible.

在Sitecore XC 9.3中,如果你发现Commerce Engine Connect工作不正常。比如你在Sitecore XP中看不见Catalogs,而且你在Sitecore的日志中发现类似的错误信息:

13536 14:05:12 ERROR invalid_client
8724 14:05:12 ERROR The Sitecore Identity Server URL is invalid or missing from your configuration, secure communication with the Commerce Engine is not possible.

问题在于Sitecore XP无法连接Sitecore Identity server或者无法或者正确的token。

你需要检查App_Config/Include/Y.Commerce.Engine/Sitecore.Commerce.Engine.Connect.config文件中的sitecoreIdentityServerUrl配置是否正确,以及clientSecretHash的内容是否与Sitecore Identity Server中的ClientSecret1一致。