Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional 500 Error thrown while unpacking content from Lazy Loader #244

Open
samuelthomson62 opened this issue Dec 18, 2023 · 0 comments

Comments

@samuelthomson62
Copy link

samuelthomson62 commented Dec 18, 2023

I have an instance of Advanced.Cms.AdvancedReviews v1.3.6 on Episerver.Cms v12.22.5 that infrequently throws a 500 server error while accessing an external review link. The exception reads similarly to the one that is thrown if you had a deleted piece of content in a content area and tried to render an external review link. The main difference is, the content is not deleted and it is instead trying to pull it from the lazy loader. From what I've read about this kind of exception, is that it is generally caused by reentrance and having the content loaded a second time.

System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at EPiServer.Core.ContentAreaItem.CreateWritableClone()
   at EPiServer.SpecializedProperties.PropertyContentArea.<>c.<CreateWritableClone>b__27_0(ContentAreaItem c)
   at System.Linq.Enumerable.SelectIListIterator`2.ToList()
   at EPiServer.SpecializedProperties.PropertyContentArea.CreateWritableClone()
   at EPiServer.Core.PropertyDataCollection.CreateWritableClone()
   at EPiServer.Core.ContentData.CreateWriteableCloneImplementation()
   at EPiServer.Core.PageData.CreateWriteableCloneImplementation()
   at EPiServer.Core.PageData.CreateWritableClone()
   at Advanced.CMS.ExternalReviews.ContentExtensions.AllowAccessToEveryone(IContent content)
   at Advanced.CMS.ExternalReviews.CustomContentLoaderInitialization.Events_LoadingContent(Object sender, ContentEventArgs e)
   at EPiServer.Core.Internal.DefaultContentEvents.RaiseContentEvent(String key, ContentEventArgs eventArgs)
   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)
   at Advanced.CMS.ExternalReviews.DraftContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions settings, T& content)
   at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback)
   at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor()
   at EPiServer.Core.ContentAreaItem.<>c__DisplayClass10_0.<.ctor>b__0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
@samuelthomson62 samuelthomson62 changed the title Occasional 500 Error thrown while unpacking content from Lazy Occasional 500 Error thrown while unpacking content from Lazy Loader Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant