Im using Episerver Find and it was all working until I added an SSL to my site - now, of course, the site is using https and the Indexing service has failed to connect to remote server and the Find controls do not work either on the front end.
Im using Episerver CMS 6 R2.
Is there a work around for this?
Could you clarify what you mean by "Find controls"?
Did you add SSL to the public facing website or are you using SSL to communicate with Find's REST API?
Sorry, I have created my own Search area that uses FIND facets etc.
This was all working until I add an SSL to the IIS. In the config file I have the original settings -
<episerver.find serviceUrl="http://es-api01.episerver.com/<MYKEY>/" defaultIndex="<MYNAME"/>
Should I make this https?
The FIND > INDEX in the CMS says this error:
WebException: Unable to connect to the remote server
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at EPiServer.Find.Connection.JsonRequest.WriteBody(String body) at EPiServer.Find.Api.SearchCommand`1.Execute() at EPiServer.Find.Client.Search[TSource](SearchRequestBody requestBody, Action`1 commandAction) at EPiServer.Find.Framework.UI.Controllers.IndexOverviewController.Index() at lambda_method(Closure , ControllerBase , Object ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.b__a() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
Hope this helps,
If your index/key supports SSL (I don't think developer indexes do out-of-the-box) it may be a good idea to give that a try. Seems kind of strange though that you wanting SSL for visitors making requests TO the web server get problems with requests FROM the web server. That may be a configuration issue in IIS, unfortunately I have no clue about that. Hopefully some EPiServer folks can provide more help :)
Thanks for your help.
I dont want want to do an SSL call for visitors - I mention SSL as the problem as it only happened after the SSL was installed but it maybe a different issue.
Does the web exception above point to anything else that may help us?
Well, Find's .NET API simple makes HttpWebRequests to Find's REST API so I can't really see whey an SSL certificate installed on the site would cause issues with that. On the other hand I wouldn't be surprised if there's some security setting somewhere that requires all external calls to be made over SSL as well unless configuration tells it not to. Or, it may be the other way around, that the web server thinks that it should include the certificate in outgoing request.
You could try and write a couple of lines of code that makes a http request to your URL/index and inspect the inner exception if an exception occurs there as well.
According to Google there's quite a few possible causes and solutions, see for instance resolution B and C here.
It's an odd one, FIND pulls in a different set of results under HTTPS than that using HTTP. HTTPS brings in a lot less results.