@@ -37,28 +37,22 @@ public void handle(HttpServletRequest request, HttpServletResponse response) thr
37
37
execute (invocationInput , request , response );
38
38
} catch (GraphQLException e ) {
39
39
response .setStatus (STATUS_BAD_REQUEST );
40
- log .info ("Bad request: cannot create invocation input parser " , e );
40
+ log .info ("Bad request: cannot handle http request " , e );
41
41
throw e ;
42
42
} catch (Throwable t ) {
43
43
response .setStatus (500 );
44
- log .info ( "Bad request: cannot create invocation input parser " , t );
44
+ log .error ( "Cannot handle http request " , t );
45
45
throw t ;
46
46
}
47
47
}
48
48
49
49
private void execute (GraphQLInvocationInput invocationInput , HttpServletRequest request ,
50
- HttpServletResponse response ) {
51
- try {
50
+ HttpServletResponse response ) throws IOException {
52
51
GraphQLQueryResult queryResult = invoke (invocationInput , request , response );
53
52
54
53
QueryResponseWriter queryResponseWriter = QueryResponseWriter .createWriter (queryResult , configuration .getObjectMapper (),
55
54
configuration .getSubscriptionTimeout ());
56
55
queryResponseWriter .write (request , response );
57
- } catch (Throwable t ) {
58
- response .setStatus (STATUS_BAD_REQUEST );
59
- log .info ("Bad GET request: path was not \" /schema.json\" or no query variable named \" query\" given" );
60
- log .debug ("Possibly due to exception: " , t );
61
- }
62
56
}
63
57
64
58
private GraphQLQueryResult invoke (GraphQLInvocationInput invocationInput , HttpServletRequest request ,
0 commit comments