Skip to content

Using dev mode makes Fablo REST unusable #643

@joaormatos

Description

@joaormatos

Trying to query or invoke using Fablo REST will result in a 400 Bad Request with a messages like:
message: 'Query failed. Errors: ["Error: Peer peer0.org1.example.com:7041 is not running chaincode myChaincode"]' for query, or
message: 'DiscoveryService: myChaincode error: failed constructing descriptor for chaincodes:<name:"myChaincode" > ' for invoke

I believe that this is due to dev mode peers not exposing connected chaincodes through the discovery service.

If no fix or workaround is possible, I believe a warning or error about this should be thrown when generating or running a configuration that uses both features.

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