You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The execute method in graphql.kickstart.servlet.HttpRequestHandlerImpl simply set reponse status to ERROR but doesn't fill any exception details, neither write error log. So that debug is not easy. Can it be improved ?
privatevoidexecute(GraphQLInvocationInputinvocationInput, HttpServletRequestrequest,
HttpServletResponseresponse) {
try {
GraphQLQueryResultqueryResult = invoke(invocationInput, request, response);
QueryResponseWriterqueryResponseWriter = QueryResponseWriter.createWriter(queryResult, configuration.getObjectMapper(),
configuration.getSubscriptionTimeout());
queryResponseWriter.write(request, response);
} catch (Throwablet) {
**response.setStatus(STATUS_BAD_REQUEST);**
log.info("Bad GET request: path was not \"/schema.json\" or no query variable named \"query\" given");
log.debug("Possibly due to exception: ", t);
}
}
cdietze, taleeus, oefimov, mypark and alexandreBaronZnk