-
Notifications
You must be signed in to change notification settings - Fork 353
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
Client can't deserialize GraphQL response #850
Comments
Hello! Thanks for raising this, indeed this is a bug - there appears to be a change in behavior between Jackson In |
Yes, the project uses Edit: Thanks, force-downgrading fixed the issue. |
How did you do the force-downgrading? |
I added this explicit import in my implementation('com.fasterxml.jackson.core:jackson-databind:2.11.1') {
version {
strictly "2.11.1"
}
} |
A simplified version: It is when trying to consume a generated client which is based on https://countries-274616.ew.r.appspot.com/?query=query%20%7B%0A%09Country%20%7B%0A%20%20%20%20name%0A%20%20%20%20%23%20check%20the%20docs%20for%20more%20info%0A%20%20%7D%0A%7D%0A Any help? |
If I do try with another query which is not exposing a List then it will work, but why is it failing for lists? The above link is the example which is failing. Example working: Example failing: |
If you just build a quick client against above endpoints then it should give the same issue there |
@angelu25 Can you provide an example repo with a branch where we can debug the issue locally. |
Also updates Jackson dependency to `2.11.3`. Resolves: ExpediaGroup#850
* [server] update to SpringBoot 2.3 Also updates Jackson dependency to `2.11.3`. Resolves: #850 * add missing validation dependency and cleanup spark dependencies
* [server] update to SpringBoot 2.3 Also updates Jackson dependency to `2.11.3`. Resolves: ExpediaGroup#850 * add missing validation dependency and cleanup spark dependencies
spring-boot-dependencies setter jackson til 2.11.2 som inneholder en liten bugg. buggen gjør at deserialisering av graphqlResponses ikke fungerer som forventet. Les mer; ExpediaGroup/graphql-kotlin#850 FasterXML/jackson-databind#2821
Works with Jackson 2.11.3 too |
I still have same issue with jackson 2.11.3 and gql kotlin 4.0.0-alpha.8 . I made demo to reproduce it. Instead of gql server it returns same json as I am receiving from shopify https://github.com/arshtepe/bug-demo |
@arshtepe Can you try using Jackson 2.11.2 |
@arshtepe as mentioned above, the underlying issue is with You can either try upgrading to Spring Boot |
@dariuszkuc it helped, thanks
|
* [server] update to SpringBoot 2.3 Also updates Jackson dependency to `2.11.3`. Resolves: ExpediaGroup#850 * add missing validation dependency and cleanup spark dependencies
Hi, I'm having some trouble with the GraphQL client (version 3.6.1). I'm getting an exception when
GraphQLClient
is trying to deserialize the response data toGraphQLResponse<HubCheckOut.Result>
. The model itself looks fine and matches the JSON, but for some reason Jackson is not able to map it.If I use a debugger to manually serialize to
Map<String, Any>
with the mapper it works, so the JSON is fine. Any ideas?This is the generated model class:
And the exception:
The text was updated successfully, but these errors were encountered: