How to debug ? #250
-
Hello, I'm working on a GraphQL plugin for Java (graphql-java-generator), that (should) implement graphql-transport-ws. I'm trying the sample you gave, and I have a (apparently) working server from your sample. At least, it listen on port 4000 for something... When I try to access to it with the Java code generated , it happens ... just nothing. From the issue #27, I see that you provided a solution, but I can't use it. Isn't there a simple config option to activate log, and see what's happening ? In Java, I'm used to configure logging level, that allows to see what's happening in the used libraries. But I have no clue on how to use it... Etienne |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
And if I remove the offending
|
Beta Was this translation helpful? Give feedback.
-
I have a hard time understanding you. How are you using this package, what was your install process? Can you share some example code? For implementing GraphQL over WebSocket supported by this library, please consult the Protocol document. |
Beta Was this translation helpful? Give feedback.
-
Yes, right. I've read the document you pointed out: it's very clear, and I implemented it in Java, in both the client and the server side. Now I want to do integration tests against your implementation, as it is the reference implementation. The issue I have is that nothing happens when my Java client calls your server. So I need to have some information on what's happening on server side, that is: some sort of debug logging I've tried what you've explained in the issue #27, but I was unsuccessful in using the sample code you provided in issue #27. This code I've done is this script. But it doesn't work: it complains with this message My question is: Etienne |
Beta Was this translation helpful? Give feedback.
-
From my understanding, the
Looking at your script briefly, I found 2 issues:
|
Beta Was this translation helpful? Give feedback.
From my understanding, the
server.js
does not even start, nothing can happen.Looking at your script briefly, I found 2 issues:
graphql-transport-ws
. Since then, it ha…