You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't understand what's happened on server side while debugging. For the first time query works fine, but then can throw this randomly when queried again:
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at HotChocolate.Types.Descriptors.Convention`1.AssertUninitialized()
at HotChocolate.Types.Descriptors.Convention`1.Initialize(IConventionContext context)
at HotChocolate.Types.Descriptors.DescriptorContext.MergeExtensions(IConventionContext context, Convention convention, IList`1 extensions)
at HotChocolate.Types.Descriptors.DescriptorContext.GetConventionOrDefault[T](Func`1 defaultConvention, String scope)
at HotChocolate.Data.ProjectionDescriptorContextExtensions.GetProjectionConvention(IDescriptorContext context, String scope)
at HotChocolate.Types.ProjectionObjectFieldDescriptorExtensions.CompileMiddleware(Type type, ObjectFieldDefinition definition, FieldMiddlewareDefinition placeholder, ITypeCompletionContext context, String scope)
In HotChocolate.Types.Descriptors, class Convention<TDefinition>:
privatevoidAssertUninitialized(){Debug.Assert(!IsInitialized,"The type must be uninitialized.");Debug.Assert(_definitionisnull,"The definition should not exist when the type has not been initialized.");if(IsInitialized||_definitionis not null){thrownewInvalidOperationException();}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Can't understand what's happened on server side while debugging. For the first time query works fine, but then can throw this randomly when queried again:
In HotChocolate.Types.Descriptors, class
Convention<TDefinition>
:HotChocolate v13.0.5
.NET 7
Full stack as image:

Beta Was this translation helpful? Give feedback.
All reactions