Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve response handling #50

Merged
merged 1 commit into from
Nov 27, 2017

Commits on Nov 27, 2017

  1. Improve response handling

    * Better error handling for both RPC and REST calls.
      * Handle `text/html` and `text/plain` differences from both request
        types correctly.
      * Proxy response errors as error messages for easier debugging.
      * Add a test for batched requests where one of the request fails.
      * Handle errors in binary-encoded requests.
    * Parse REST responses with JSONBigInt to avoid losing precision. This
      means that some of the response values will now be strings (e.g.
      the network difficulty on `getDifficulty()`).
    Pedro Branco authored and Rui Marinho committed Nov 27, 2017
    Configuration menu
    Copy the full SHA
    093d562 View commit details
    Browse the repository at this point in the history