question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

graphql.AssertException: type definition for type 'TypeName{name='String'}' not found

See original GitHub issue

Before you create the issue

Version and Environment Details

Operation system: MacOS Catalina 10.15.3

IDE name and version: WebStorm 2019.03.03

WebStorm 2019.3.3
Build #WS-193.6494.34, built on February 11, 2020
Licensed to JJSOFT / mingu song
Subscription is active until March 28, 2020
Runtime version: 11.0.5+10-b520.38 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.3
GC: ParNew, ConcurrentMarkSweep
Memory: 989M
Cores: 8
Registry: js.debugger.webconsole=false
Non-Bundled Plugins: com.intellij.lang.jsgraphql, com.wakatime.intellij.plugin, ru.adelf.idea.dotenv

Plugin version: 2.4.0

Expected Behaviour

update schema

Actual Behaviour

GraphQL Introspection Error

graphql.AssertException:  type definition for type 'TypeName{name='String'}' not found
	at graphql.Assert.assertTrue(Assert.java:76)
	at graphql.schema.idl.SchemaGenerator$BuildContext.getTypeDefinition(SchemaGenerator.java:162)
	at graphql.schema.idl.SchemaGenerator.buildInputType(SchemaGenerator.java:456)
	at graphql.schema.idl.SchemaGenerator.lambda$null$1(SchemaGenerator.java:401)
	at graphql.schema.idl.SchemaGeneratorHelper.buildDirectiveArgumentFromDefinition(SchemaGeneratorHelper.java:328)
	at graphql.schema.idl.SchemaGeneratorHelper.lambda$buildDirectiveFromDefinition$9(SchemaGeneratorHelper.java:317)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at graphql.schema.idl.SchemaGeneratorHelper.buildDirectiveFromDefinition(SchemaGeneratorHelper.java:318)
	at graphql.schema.idl.SchemaGenerator.lambda$buildAdditionalDirectives$2(SchemaGenerator.java:402)
	at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608)
	at graphql.schema.idl.SchemaGenerator.buildAdditionalDirectives(SchemaGenerator.java:400)
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchemaImpl(SchemaGenerator.java:278)
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchema(SchemaGenerator.java:271)
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchema(SchemaGenerator.java:243)
	at com.intellij.lang.jsgraphql.ide.editor.GraphQLIntrospectionHelper.buildIntrospectionSchema(GraphQLIntrospectionHelper.java:318)
	at com.intellij.lang.jsgraphql.ide.editor.GraphQLIntrospectionHelper.printIntrospectionJsonAsGraphQL(GraphQLIntrospectionHelper.java:282)
	at com.intellij.lang.jsgraphql.ide.editor.GraphQLIntrospectionHelper$2.lambda$run$0(GraphQLIntrospectionHelper.java:162)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:309)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Steps to Reproduce / Link to Repo with Reproduction and Instructions

click Get Graphql Schema ~~ and error is occured

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
GeyseRcommented, Apr 27, 2020

Unfortunately, the error didn’t happen in the clean debugging IntelliJ IDEA Ultimate environment. Re-installing the plugin fixed the problem. Thanks for helping 👍

1reaction
min9nimcommented, Mar 27, 2020

Thank you for your kind answer.

I tried to attach the schema. But Today, the problem does not occur and it works normally. (I don’t know why)

I’ll share the schema again in case of problems later.

Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

graphql.AssertException: type definition for type 'TypeName ...
AssertException : type definition for type 'TypeName{name='String'}' not found at graphql.Assert.assertTrue(Assert.java:76) at ...
Read more >
Cant find whats causing graphql.AssertException
I am currently learning Spring Boot and GraphQL. For graphql I am ... AssertException: Object required to be not null at graphql.Assert.
Read more >
eclipse/microprofile-graphql - Gitter
leads to an exception: graphql.AssertException: type TeamInput not found in schema at graphql.Assert.assertNotNull(Assert.java:15) at graphql.schema.
Read more >
Exceptions | GraphQL Java
graphql.schema.CoercingSerializeException. is thrown when a value cannot be serialised by a Scalar type, for example a String value being coerced as an Int....
Read more >
Defining a schema - GraphQL Java Kickstart
Defining a schema ... type Book { id: Int! name: String! author: Author! } ... This does not apply to root resolvers, since...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found