From 7d8d09a370a9e5fc7d245d5fbf3453c35f451df8 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Thu, 17 May 2018 15:19:42 -0500 Subject: [PATCH] Show HTTP status code when Jason decode fails --- apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex index 41794ed328..3c808c7b22 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex @@ -420,13 +420,17 @@ defmodule EthereumJSONRPC do """ failed to decode json payload: - request url: #{inspect(request_url)} + request: - request body: #{inspect(request_body)} + url: #{inspect(request_url)} - response status code: #{inspect(response_status_code)} + body: #{inspect(request_body)} - response body: #{inspect(response_body)} + response: + + status code: #{inspect(response_status_code)} + + body: #{inspect(response_body)} """ end)