London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Find stopped working after SSL activated on site, returns Unauthorized

Vote:
 

After we switched our EPiServer Commerce 10.x site to use SSL, Find have stopped working. From the log:

2017-04-03 16:37:45,291 [1] ERROR EPiServer.Find.Commerce.FindCommerceInitializationModule: Could not apply catalog content conventions.
EPiServer.Find.ServiceException: The remote server returned an error: (401) Unauthorized.
Unauthorized ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at EPiServer.Find.Connection.JsonRequest.GetResponseStream()
at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request)
--- End of inner exception stack trace ---
at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at EPiServer.Find.Commerce.CatalogContentClientConventions.ApplyNestedConventions(NestedConventions nestedConventions)
at EPiServer.Find.Commerce.CatalogContentClientConventions.ApplyConventions(IClientConventions clientConventions)
at EPiServer.Find.Commerce.FindCommerceInitializationModule.Initialize(InitializationEngine context)
EPiServer.Find.ServiceException: The remote server returned an error: (401) Unauthorized.
Unauthorized ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at EPiServer.Find.Connection.JsonRequest.GetResponseStream()
at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request)
--- End of inner exception stack trace ---
at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at EPiServer.Find.Commerce.CatalogContentClientConventions.ApplyNestedConventions(NestedConventions nestedConventions)
at EPiServer.Find.Commerce.CatalogContentClientConventions.ApplyConventions(IClientConventions clientConventions)
at EPiServer.Find.Commerce.FindCommerceInitializationModule.Initialize(InitializationEngine context)

Tested on my local machine (without https) to our test index without problem. Identical code on server. 

On the server, when calling https://es-eu-api01.episerver.net/ I get the response:

{"status":200,"message":"Welcome to the EPiServer Find Proxy!"}

So I suppose Find is reachable from the server. Searched the forum and Googled it but could not find a solution.

#177058
Apr 03, 2017 16:45
Vote:
 

Have you tried changing serviceUrl to use https in your episerver.find configuration section?

I would try configuring Fiddler on webserver and checking requests that Find sends to the cluster.

#177414
Apr 11, 2017 10:51
Vote:
 

The problem was the connection string whish had been set to lowercase when I copied it. After that was fixed everything worked just fine.

#177431
Apr 11, 2017 13:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.