-
Notifications
You must be signed in to change notification settings - Fork 95
[v2] Introspection error when getting schema from GraphQL SPQR service #229
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
Comments
Thanks for testing the plugin. I've fixed this for the upcoming beta-2 release. The introspection schema type registry based on graphql-java was filtering out scalars such as Long, BigDecimal etc. since graphql-java has these built-in. |
I have a very similar issue, this is my config:
And the plugin fails with this error:
Full stack
This is what
The GraphiQL AppImg works just fine. Workaround: (maybe an issue with |
Hi @arielnmz This is indeed an issue with spec compliance in graphene-python. Thanks for linking the issues. For you specific schema graphene quotes an enum default value, turning it into a GraphQL string, which is not a valid way of representing a default enum value. See #216 (comment) for more context on how the GitHub API apparently had the same issue with spec compliance on enum default values. Best regards, |
When I try to get schema from endpoint by
Default GraphQL Endpoint
->Get GraphQL Schema from Endpoint (introspection)
from service which uses GraphQL SPQR I get error:Stack trace:
In services which doesn't use GraphQL SPQR getting schema by plugin works.
Based on this, you can think it's the GraphQL SPQR's fault. But schema can be got by other tools, for example by get-graphql-schema or graphql-cli (based on this answer).
Example with GraphQL SPQR (error only in plugin case)
(uses GraphQL Java Spring)
.graphqlconfig
for plugin (http://localhost:8000/graphql
- pay attention to port!)StarterDemoApplication
(from projectspring-boot-starter-sample
).Get GraphQL Schema from Endpoint (introspection)
in plugin and get error.get-graphql-schema http://localhost:8000/graphql
and get schema.Example without GraphQL SPQR (without error in both case)
(uses GraphQL Spring Boot Starter)
.graphqlconfig
for plugin (http://localhost:8080/graphql
)BookDetailsApplication
(from projectbook-details
).Get GraphQL Schema from Endpoint (introspection)
in plugin and get schema.get-graphql-schema http://localhost:8080/graphql
and get schema.Example with GraphQL SPQR, but without Spring Boot (error only in plugin case)
(to eliminate fault in GraphQL Spring Boot Starter; it is pure GraphQL SPQR and GraphQL Java - so I think Spring Boot starter doesn't matter)
.graphqlconfig
for plugin is created (http://localhost:8000/graphql
)mvn jetty:run
(from projecthackernews-graphql-java
).Get GraphQL Schema from Endpoint (introspection)
in plugin and get error.get-graphql-schema http://localhost:8000/graphql
and get schema.But in the last one example I get different error than first example:
GraphQL Introspection Error
Stack trace:
It's look like problem with getting custom scalars defined in GraphQL SPQR.
v.2.0.0-beta-1
IntelliJ IDEA 2018.3.5 Ultimate Edition
The text was updated successfully, but these errors were encountered: