Skip to content

Throw Error when rate limits are hit #164

@christroutner

Description

@christroutner

When bch-js receives a 429 error from bch-api, it sometimes returns the error message as an object, rather than throwing an error. The proper behavior is to throw an error.

The scope of this Issue is to review the error handlers of endpoints and properly handle 429 errors. This code snippet of validateTxid3() captures how it catches and properly handles 429 errors:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions