Try our conversational search powered by Generative AI!

Episerver Find Indexing Error while Adding/Updating content in CMS

Vote:
 

Hi,

I am getting following error while adding/updating content. Also, the cotent is not indexing during this (adding/updating content).

But, if I run the indexing job (EPiServer Find Content Indexing Job) the content is successfully indexing.

Here is the detailed error:

ERROR EPiServer.Find.Cms.ContentEventIndexer: An exception occurred while indexing (IContent). The remote server returned an error: (403) Forbidden.

Your key is not authorized to access (POST) '/_bulk'.

EPiServer.Find.ServiceException: The remote server returned an error: (403) Forbidden.

Your key is not authorized to access (POST) '/_bulk' ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.

   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 EPiServer.Find.Api.BulkCommand.Execute(List`1& serializationFailures)

   at EPiServer.Find.Api.BulkCommand.Execute()

   at EPiServer.Find.Client.Index(IEnumerable objectsToIndex, Boolean deleteLanguageRoutingDuplicatesOnIndex)

   at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex)

   at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 content, IndexOptions options)

   at EPiServer.Find.Cms.ContentEventIndexer.Index(IEnumerable`1 contentLinks)

   at EPiServer.Find.Cms.ContentEventIndexer.<>c__DisplayClass25_0.<IndexPageQueue>b__4()

   at EPiServer.Find.Cms.ContentEventIndexer.Sync(IEnumerable`1 contentToIndex, HashSet`1 contentToIndexSet, Func`1 index)

   at EPiServer.Find.Cms.ContentEventIndexer.IndexPageQueue(IEnumerable`1 contentToIndex)

   at EPiServer.Find.Cms.ContentEventIndexer.IndexPageQueue()

EPiServer.Find.ServiceException: The remote server returned an error: (403) Forbidden.

Your key is not authorized to access (POST) '/_bulk' ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.

   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 EPiServer.Find.Api.BulkCommand.Execute(List`1& serializationFailures)

   at EPiServer.Find.Api.BulkCommand.Execute()

   at EPiServer.Find.Client.Index(IEnumerable objectsToIndex, Boolean deleteLanguageRoutingDuplicatesOnIndex)

   at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex)

   at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 content, IndexOptions options)

   at EPiServer.Find.Cms.ContentEventIndexer.Index(IEnumerable`1 contentLinks)

   at EPiServer.Find.Cms.ContentEventIndexer.<>c__DisplayClass25_0.<IndexPageQueue>b__4()

   at EPiServer.Find.Cms.ContentEventIndexer.Sync(IEnumerable`1 contentToIndex, HashSet`1 contentToIndexSet, Func`1 index)

   at EPiServer.Find.Cms.ContentEventIndexer.IndexPageQueue(IEnumerable`1 contentToIndex)

   at EPiServer.Find.Cms.ContentEventIndexer.IndexPageQueue()

#203236
Apr 12, 2019 13:08
Vote:
 

It sounds like a problem with the index actually. Can you try with another index? ( yeah I don't know why it "works" with the scheduled job.

#203237
Apr 12, 2019 13:40
Vote:
 

Hi Quan,

Sorry to say that, I already tried in that way :)

I tried followings

  1. Clearing indexes. - Not Worked
  2. Deleting Indexes - Not Worked
  3. Creating new Index service - Not worked

So, is there any setting to stop indexing while content update/adding? That may be the reason.

#203242
Apr 12, 2019 15:20
Vote:
 

It doesn't make any sense to me, what you want to say? Do you have reference for your suggested resolution of this issue?

#203393
Apr 22, 2019 15:19
Vote:
 

I have also seen this error message, but do not remember where.
Is it on the live index or on a developer/demo index?

#203417
Apr 23, 2019 9:52
Vote:
 

It's on developer index. But I tried clearing/deleting indexes to avoid issue of max allowed limited.

#203423
Apr 23, 2019 13:37
Vote:
 

If requests in general works well, which seems to be the case here, this is most of the time caused by a bulk request with an empy payload. In an upcoming version of the Find backend these requests will be responded with a HTTP 400 (bad request) instead of a HTTP 403 (forbidden) which is a more accurate response.

In 95% of the support cases on this topic the root cause is a serialization error during population of the request which causes the request to be empty. In Find 13.2 empty requests won't be allowed to be sent.


The concern with this kind of problem is that it's not appearing in any indexing logs or any find debug logs and therefor hard to troubleshoot.

A partner developer wrote a good blog post on the subject - how to trace the serialization exception and find the item and/or type that cause it.

https://www.brianweet.com/2019/03/29/find-serialization-exceptions.html

#203427
Apr 23, 2019 14:45
Vote:
 

Thanks for replying.

The link of blog post you shared, sounds meaningful to me. Although we don't have exact solution to the problem, but at least we have some direction on that for actual cause.

Thanks and regards,

Praful Jangid

#203563
Apr 27, 2019 5:13
Vote:
 

Hi Praful,

If you want we could in application support confirm whether your bulk requests are in fact empty. 

#203567
Edited, Apr 27, 2019 11:36
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.