Try our conversational search powered by Generative AI!

Find: Server error when index is full

Found in

EPiServer.Commerce 9.4.0

Fixed in

EPiServer.Find.Commerce 9.7.2

(Or a related package)

Created

Sep 28, 2016

Updated

Feb 13, 2017

Area

Find

State

Closed, Fixed and tested


Description

Using Episerver Commerce.find 9.6.2.

Steps to reproduce

1. Install Commerce Seagull + Find 12.2.3 + Find Commerce 9.6.2.
2. Configure in webconfig an index that is full.
3. Browse the site.

Expected:
Like the CMS action, the site works fine and a warning message displays in the FindUI that your index is full.

Actual:
Server error on site (see below). The site only works properly after clearing the index.

Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (403) Forbidden.

Source Error:

[No relevant source lines]

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\2c4a371e\d57238b7\App_global.asax.0.cs Line: 0

Stack Trace:

[WebException: The remote server returned an error: (403) Forbidden.]
System.Net.HttpWebRequest.GetResponse() +1390
EPiServer.Find.Connection.JsonRequest.GetResponseStream() +161
EPiServer.Find.Api.Command.GetResponse(IJsonRequest request) +70

[ServiceException: The remote server returned an error: (403) Forbidden.
Your account is not authorized to index more than 5000 documents]
EPiServer.Find.Api.Command.GetResponse(IJsonRequest request) +414
EPiServer.Find.Api.PutMappingCommand.Execute() +136
EPiServer.Find.ClientConventions.NestedConventions.AddNestedType(Type declaringType, String name) +307
EPiServer.Find.ClientConventions.<>c_DisplayClass17_0.<MarkAllImplementationsAsNested>b_2(Type t) +14
System.Collections.Generic.List`1.ForEach(Action`1 action) +11449874
EPiServer.Find.ClientConventions.NestedConventions.MarkAllImplementationsAsNested(Type declaringType, String name) +292
EPiServer.Find.ClientConventions.NestedConventions.ForInstancesOf(Expression`1 exp) +55
EPiServer.Find.ClientConventions.NestedConventionItemInstanceWrapper`1.Add(Expression`1 expr) +59
EPiServer.Find.Commerce.CatalogContentClientConventions.ApplyNestedConventions(NestedConventions nestedConventions) +222
EPiServer.Find.Commerce.CatalogContentClientConventions.ApplyConventions(IClientConventions clientConventions) +54
EPiServer.Find.Commerce.FindCommerceInitializationModule.ConfigureContainer(ServiceConfigurationContext context) +300
EPiServer.Framework.Initialization.Internal.<>c_DisplayClass5_0.<ConfigureContainer>b_0() +16
EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +52
EPiServer.Framework.Initialization.Internal.ModuleNode.ConfigureContainer(ServiceConfigurationContext context) +100
EPiServer.Framework.Initialization.InitializationEngine.ConfigureContainer(HostType hostType) +274
EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +76
EPiServer.Framework.Initialization.InitializationEngine.Initialize() +32
EPiServer.Framework.Initialization.<>c.<FrameworkInitialization>b__7_0(InitializationEngine e) +9
EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +249
EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
EPiServer.Global..ctor() +76
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\2c4a371e\d57238b7\App_global.asax.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +206
System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1065
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +124
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +263
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9946024
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261