-
Notifications
You must be signed in to change notification settings - Fork 113
Fix Subscription GraphQLRequest deserialization #249
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
Fix Subscription GraphQLRequest deserialization #249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I get jar with this fix ?
Thanks! |
@kobylynskyi I had to revert this commit, because it broke my subscriptions instead of fixing them. It therefore sounds the error you're facing is not caused by this, but is caused by something else. |
This commit fixed my subscriptions. May be not to revert it ? |
This commit fixed my subscriptions. May be not to revert it ? |
It breaks default subscriptions when using it with GraphiQL and Altair. The only reported issue similar to your issues was graphql-java-kickstart/graphql-spring-boot#366 which was because it was manually defining dependencies instead of letting the project pull them in which caused compatibility issues. If you do that and still have a problem then raise an issue and ideally create a PR to fix that, but it must not break functionality that's being used without any problem by everybody else. See this subscription sample (plain servlet, no tools/spring-boot used there): https://github.com/graphql-java-kickstart/samples/tree/master/servlet-hello-world |
Thank you very much for brief example. Are you sure it is working with version 9.1.0 ? public class SubscriptionEndpoint extends GraphQLWebsocketServlet { public SubscriptionEndpoint() { } GraphQLWebsocketServlet doesn't have such a constructor in this version. |
That example requires 9.2.0-SNAPSHOT. There's also an example using Spring Boot that doesn't require it: https://github.com/graphql-java-kickstart/samples/tree/master/subscription-with-authentication. It showcases subscription authentication, although that's not the part you're interested in here. |
Can you please tell which dependencies exactly solve the issue ? We are not working with gradle/maven. We are working with Wildfly 11 and put jars manually into its folders. I upgraded jackon jars to 2.10.0 but it didn't help. Thanks in advance. |
I don't have any experience with Wildfly. If you're manually managing your jars that could easily lead to compatibility problems as indicated above as the cause for this problem in the related issue. Your best bet would be to take a look at the sample projects I shared with you and compare the dependencies used there with the ones used by you right now. Otherwise you might be better off raising an issue on Stackoverflow for this particular use case. The samples and test cases related to subscriptions are working correctly so from my point of view the functionality as provided by this library and using the mechanisms supported by this library are working as expected. |
Do you have an example of using rxjava (instead of reactor-core) for creating publishers ? |
No, I don't. |
Fixes the following error while subscription request deserialization:
The error is seen in
9.1.0
as well as9.2.0=SNAPSHOT
.Probably related to:
graphql-java-kickstart/graphql-spring-boot#366