Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

[BUG] Chaincode returns 500 error instead of 400 in some cases #77

@samlesu

Description

@samlesu

Describe the bug
The chaincode responds in some cases a 500 error instead of a 400 error. For traceability and debugging it should be fixed: 500 errors are server errors and 400 errors are user errors.

Investigation

This is at least true for the following error:

            return Permissions{}, fmt.Errorf("invalid permission input values")

We should go through all the errors returned by the chaincode and ensured they have the proper status code.

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