Open AngelAlexQC opened 2 years ago
Hi there, thanks so much for the bug report!
We poll for introspection so that changes in your server can be picked up immediately, so that part may be functioning as expected? (If you'd like to disable the polling, please either click the green dot next to your endpoint to pause, or click the gear icon to open "connection settings" and disable "auto update")
Is indeed strange that it isn't returning a response though. Could you open chrome devtools, and see what is returned from the introspection request? (Find the network request to your endpoint that has a Payload with an operation name of operationName: "IntrospectionQuery"
)
Ok, I disabled auto updating and it worked great. This is the response returned by the instrospection query:
Now I tried it activated and all the pending queries remain pending, the query that I execute and the instropection queries. The problem I think is that many requests are sent in a short time, and although they are all successful the server can't process so many at once.
I think it could be fixed by pausing the instrospection in the background while the query or mutation is executed.
Ah thank you that makes sense
Perhaps we should allow people to specify how frequently the poll should occur
Curious what time interval might make sense for your server?
Personally I would put it between 3 and 5 seconds, but it is much better if it is configurable by each user.
Hello, I recently discovered this tool and I find it wonderful, it is the best Graphl client I have used, I want to contribute by reporting a problem that happens to me.
I was trying to do a query to my server in Ruby on Rails but it stays in the request infinitely without returning a response.
In the rails logs the query succeeds but it does the instrospection again, and it repeats infinitely.
This has only happened to me with rails servers, because in one with Node this does not happen, however in the rails server the requests with other clients such as Insomnia are performed successfully. The client is stuck in loading state and the response is never displayed:
This is one fragment of the logs:
As you can see the instrospection is repeated infinitely despite getting a response from the server.