Skip to content

Proposal: throw explanatory errors in case of decoding errors #147

Open
@0x009922

Description

@0x009922

@iroha2/data-model is built on a particular version of Iroha 2, and there might be compatibility issues with other version of how structures are (de)serialised. It might cause confusing errors like #126.

I propose to wrap places where @iroha2/client makes Torii requests and decodes their responses with code that catches possible decoding errors and prints a meaningful warning with text like "this library targets Iroha 2 version xxx - please ensure that you're communicating with Iroha of the same version".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions