Show HTTP status code when Jason decode fails

pull/335/head
Luke Imhoff 7 years ago
parent 53d34141ee
commit 7d8d09a370
  1. 12
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex

@ -420,13 +420,17 @@ defmodule EthereumJSONRPC do
""" """
failed to decode json payload: 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) end)

Loading…
Cancel
Save