tim
04/12/2022, 4:06 PMgraphqlIntrospectSchema
in the 6.0.0-alpha.0 version. I’ve started my gql server and then i’m running ./gradlew graphqlIntrospectSchema --endpoint="<http://localhost:12017/api/public/graphql>"<http://localhost:12017/api/public/graphql>
but this is failing with the following exception:
Execution failed for task ':graphqlIntrospectSchema'.
> There was a failure while executing work items
> A failure occurred while executing com.expediagroup.graphql.plugin.gradle.actions.IntrospectSchemaAction
> Unable to run introspection query against the specified endpoint=<http://localhost:12017/api/public/graphql>
No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class kotlin.collections.Map
with response from <http://localhost:12017/api/public/graphql>:
status: 200 OK
response headers:
Vary: Origin
, Content-Length: 34557
, Content-Type: text/plain; charset=UTF-8
, Connection: keep-alive
Any suggestions on what I’m doing wrong?Dariusz Kuc
04/12/2022, 4:24 PMtim
04/12/2022, 5:24 PMvio
04/19/2022, 4:54 PM6.0.0-alpha.1
, and added the full logs in an issue: hereDariusz Kuc
04/19/2022, 10:42 PMgraphql-kotlin
plugin
Since you are configuring graphql { client { .... }}
it will attempt to add corresponding tasks as a compile dependency. When you attempt to build/run your app it attempts to run introspection against localhost:8080/graphql
which at that point in time does not exist yet - hence the Unable to run introspection query against the specified endpoint=<http://localhost:8080/graphql>
vio
04/21/2022, 12:28 PMcontent type
on the response fixed the introspection issue:
call.respondText(jsonString, ContentType.Application.Json)
and after I had the schema and added the graphql queries to resources
, I managed to
get the graphql plugin to generate the files. I've pushed the fix to that repo as well.
Thank you very much 🙏Dariusz Kuc
04/21/2022, 1:29 PM