Gravatar for stuartbronk@redweb.com

Question by stuartbronk, Apr 11, 2017 8:34 AM

Invalid URI: The format of the URI could not be determined.

Hi,

When i'm trying to build my indexes they keep failing with the error "Invalid URI: The format of the URI could not be determined." the full error is below. I'm not sure which items are causing the issue here any suggestions with how to begin debugging this would be appreciated.

were using.

Current Coveo for Sitecore version: 4.0.895.0

Current Sitecore version: 8.2.161221

Thanks

Stu

Job started: Index_Update_IndexName=Coveo_master_index|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Coveo.CloudPlatformClient.Exceptions.StopRebuildException: An error occurred while querying indexed documents. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Net.WebRequest.Create(String requestUriString)
   at Coveo.Framework.Utils.Rest.HttpClient.CreateRequest(String p_Method, String p_Url, Boolean p_PreserveMethodOnRedirect)
   at Coveo.Framework.Utils.Rest.HttpClient.CreateRequest(String p_Method, String p_Url, String p_Body, Boolean p_PreserveMethodOnRedirect)
   at Coveo.Framework.Utils.Rest.HttpClient.<>c__DisplayClass17.<PostRaw>b__16(String p_RequestUrl)
   at Coveo.Framework.Utils.Rest.HttpClient.ExecuteRequest(String p_Url, Func`2 p_CreateRequest, Int64 p_CallId)
   at Coveo.Framework.Utils.Rest.HttpClient.PostRaw(String p_Url, String p_Body)
   at Coveo.Framework.Utils.Rest.HttpClient.Post(String p_Url, String p_Body)
   at Coveo.SearchServiceProvider.Rest.SearchQueryHelper.ExecuteQuery(QueryParams p_QueryParams, String p_Username)
   at Coveo.CloudPlatformClient.DocumentManagement.CloudPlatformDocumentsHandler.ExecuteQuery(QueryParams p_QueryParams)
   --- End of inner exception stack trace ---
   at Coveo.CloudPlatformClient.DocumentManagement.CloudPlatformDocumentsHandler.ExecuteQuery(QueryParams p_QueryParams)
   at Coveo.CloudPlatformClient.DocumentManagement.CloudPlatformDocumentsHandler.<>c__DisplayClass46.<CreateAddedDocumentsPoller>b__43(IIncrementingPollerController controller)
   at Coveo.Framework.Synchronization.IncrementingPoller.WaitUntilComplete()
   at Coveo.CloudPlatformClient.DocumentManagement.CloudPlatformDocumentsHandler.ProcessStopRebuild(RebuildContext p_Context)
   at Coveo.CloudPlatformClient.DocumentManagement.CloudPlatformDocumentsHandler.StopRebuild(RebuildContext p_Context)
   at Coveo.CloudPlatformClient.DocumentManagement.CloudPlatformDocumentIndexer.StopRebuild(RebuildContext p_Context)
   at Coveo.CloudPlatformClient.Communication.CloudPlatformCommunication.StopRebuild(RebuildContext p_Context)
   at Coveo.SearchProvider.ProviderIndexBase.PerformRebuild(IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndexBase.Rebuild(IndexingOptions p_IndexingOptions, IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndex.TryPerformIndexingOperation(IndexingOptions p_IndexingOptions, Action p_Action)
   at Coveo.SearchProvider.ProviderIndex.Rebuild()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj)
   at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.Jobs.Job.ThreadEntry(Object state)

Gravatar for dberube@coveo.com

Comment by Dominic Berube, Apr 11, 2017 12:10 PM

Hi Stu,

Looks like the issue is coming from the query performed at the end of the rebuild to validate that all documents are correctly indexed. It's trying to reach the Rest Endpoint of your instance, which is usually located at http://[YOUR_INSTANCE_NAME]/coveo/rest.

Can you validate that the element coveo/restEndpointConfiguration/restEndpointPath in the Coveo.SearchProvider.Rest.config file is correctly set to /coveo/rest.

0 Reply
Ask a question