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

Backend: handle null response from Eth server #287

Merged
merged 5 commits into from
Sep 2, 2024

Commits on Sep 2, 2024

  1. Backend: handle null response from Eth server

    Introduce AbnormalNullValueInJsonResponseException type and
    raise it when response for balance request for Ethereum returns
    json with "result" field value of `null`. This way server will
    be marked as faulty instead of crashing the application.
    
    Fixes nblockchain#282
    webwarrior-ws committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    a012a4a View commit details
    Browse the repository at this point in the history
  2. Backend: handle other Eth server null responses

    Raise WeirdNullResponseException on all possible null responses
    or responses that contain null value from Ethereum servers.
    webwarrior-ws committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    f381924 View commit details
    Browse the repository at this point in the history
  3. Backend/Ether: handle/retry RPC error -39000

    Add code -39000 (UnparsableResponseType) to RpcErrorCode
    enum and process it since this error was encountered during
    integration testing.
    webwarrior-ws committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    d00527f View commit details
    Browse the repository at this point in the history
  4. Backend/Ether: handle/retry HTTP error 408

    Handle/retry HTTP error 408 (request timeout) in error
    handling code (raise ServerTimedOutException).
    webwarrior-ws committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    c46a3da View commit details
    Browse the repository at this point in the history
  5. Backend/Ether: refactor null checks

    Make all null checks use isNull function as it's the most
    reliable way to test if value is null.
    webwarrior-ws committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    f05dd7a View commit details
    Browse the repository at this point in the history