enonic/app-guillotine

Types must have unique name

Closed this issue · 0 comments

Caused by: graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type 'no_sio_ServiceAreaLandingPage_ButtonUrlOptions_OptionEnum' from being a 'GraphQLEnumType' to a 'GraphQLEnumType'
at graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
at graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
at graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLEnumType(GraphQLTypeCollectingVisitor.java:44)
at graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLEnumType$4(MultiReadOnlyGraphQLTypeVisitor.java:76)
at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4204)
at graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLEnumType(MultiReadOnlyGraphQLTypeVisitor.java:76)
at graphql.schema.GraphQLEnumType.accept(GraphQLEnumType.java:259)
at graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
at graphql.util.Traverser.traverse(Traverser.java:144)
at graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
at graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
at graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
at graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
at graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:930)
at graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:904)
at graphql.schema.GraphQLSchema.transform(GraphQLSchema.java:614)
at com.enonic.app.guillotine.graphql.GraphQLApi.createSchema(GraphQLApi.java:85)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$337$1065$api.L:1#getSchema#L:36(com.enonic.app.guillotine:/api/api.js:37)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.ScriptObjectMirror.call(ScriptObjectMirror.java:111)
at com.enonic.xp.script.impl.value.FunctionScriptValue.call(FunctionScriptValue.java:38)
at com.enonic.app.guillotine.Synchronizer.sync(Synchronizer.java:9)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$336$980$api.L:1#getSchema(com.enonic.app.guillotine:/api/api.js:36)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$335$1257A$api.L:1#post(com.enonic.app.guillotine:/api/api.js:55)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:648)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.ScriptObjectMirror.call(ScriptObjectMirror.java:111)
at com.enonic.xp.script.impl.value.FunctionScriptValue.call(FunctionScriptValue.java:38)
at com.enonic.xp.script.impl.executor.ScriptExportsImpl.executeMethod(ScriptExportsImpl.java:59)
at com.enonic.xp.portal.impl.controller.ControllerScriptImpl.doExecute(ControllerScriptImpl.java:64)
at com.enonic.xp.portal.impl.controller.ControllerScriptImpl.lambda$execute$1(ControllerScriptImpl.java:36)
at com.enonic.xp.trace.Tracer.trace(Tracer.java:128)
at com.enonic.xp.trace.Tracer.trace(Tracer.java:134)
at com.enonic.xp.portal.impl.controller.ControllerScriptImpl.execute(ControllerScriptImpl.java:35)
at com.enonic.app.guillotine.handler.GuillotineApiWebHandler.doHandle(GuillotineApiWebHandler.java:64)
at com.enonic.xp.web.handler.BaseWebHandler.handle(BaseWebHandler.java:67)
at com.enonic.xp.web.impl.handler.WebHandlerChainImpl.handle(WebHandlerChainImpl.java:28)
at com.enonic.xp.web.handler.BaseWebHandler.handle(BaseWebHandler.java:76)
at com.enonic.xp.web.impl.handler.WebHandlerChainImpl.handle(WebHandlerChainImpl.java:28)
at com.enonic.xp.portal.handler.BasePortalHandler.doHandle(BasePortalHandler.java:46)
... 87 common frames omitted