americanexpress / nodes

A GraphQL JVM Client - Java, Kotlin, Scala, etc.
Apache License 2.0
307 stars 70 forks source link

GraphQLException in Kotlin sample #13

Closed catmclough closed 6 years ago

catmclough commented 6 years ago

When running Main.kt in the kotlin-sample my coworker and I are both seeing the following error:

Exception in thread "main" GraphQLException{message='OK', status='200', description='Cannot construct instance of `models.User` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: io.aexp.nodes.graphql.Wrapper["data"])', errors=null}
chemdrew commented 6 years ago

Hi Catherine, thanks for opening this issue! Was trying to do some cleaning up and it looks like I went a little too far and didn't properly check my work. Please pull the latest and let me know if that fixes the problems you were facing

catmclough commented 6 years ago

Yes that works, thank you!