An exception occurred while trying to fetch the HTML content of the document id

In this article

Symptoms

You are noticing that certain items are not being indexed and when analyzing the log files you see the following error.

Coveo.SearchProvider.Processors.FetchPageContentProcessor.ProcessItem(:0) ERROR An exception occurred while trying to fetch the HTML content of the document id "{MY_ID}" for the URL "MY_URL". No binary data has been set
No binary data has been set.
Exception: System.Net.WebException
Message: The remote server returned an error: (500) Internal Server Error.
Source: System
at System.Net.HttpWebRequest.GetResponse()
at Coveo.Framework.Http.HttpWebRequest.GetResponse()
at Coveo.SearchProvider.Processors.FetchPageContentProcessor.GetHttpWebResponseForIndexableItem(IReadOnlyCoveoIndexableItem p_IndexableItem)
at Coveo.Framework.CNL.LazyCache`2.get_Item(TKey p_Key)
at Coveo.SearchProvider.Processors.FetchPageContentProcessor.ProcessItem(IndexableItemBinaryDataFacade p_Item, LazyCache`2 p_BinaryDataCache)

Cause

Any items that return this error may be inaccessible from the Content Manager server or have an incorrect path in the Sitecore database.

Resolution

Ensure items are accessible from the Content Manager. If item paths are incorrect, you can re-index the tree where the item is located by using the Re-index Tree option in the Sitecore Content Editor.