From 6c598587b2ef58090310462bcaeca2f77e43ebda Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 1 Apr 2023 00:47:55 +0200 Subject: [PATCH] fix bad jsonrpc response on Method error --- internal/jsonrpc/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/jsonrpc/handler.go b/internal/jsonrpc/handler.go index 27d34d0..30f3ef9 100644 --- a/internal/jsonrpc/handler.go +++ b/internal/jsonrpc/handler.go @@ -91,6 +91,7 @@ func (h *Handler) HandleRequest(ctx context.Context, s *session.Session, r io.Re reqerr := res[1].Interface().(error) slog.Error("API Method", reqerr, "method", req.Method, "id", req.ID) respondError(w, req.ID, ErrInternalError, reqerr) + return nil } respondResult(w, req.ID, result)