Code Monkey home page Code Monkey logo

ibm / blockchainbean Goto Github PK

View Code? Open in Web Editor NEW
68.0 18.0 47.0 104.92 MB

# WARNING: This repository is no longer maintained :warning: This pattern focuses on older technology (e.g. Hyperledger Fabric APIs prior to Fabric 1.4). Therefore, there is no support for this pattern and it will be archived on May 1, 2019. You are welcome to use up to that date, but we recommend that you begin working with the updated release found at https://developer.ibm.com/patterns/coffee-supply-chain-network-hyperledger-fabric-blockchain-2/.

Home Page: https://www.ibm.com/blockchainbean

License: Apache License 2.0

Shell 40.14% JavaScript 59.86%

blockchainbean's Issues

How would you go about creating multiple channels and rest api per channel

Im confused as to how the rest server knows which channel to use, since it uses the connection profile from the rest api "networks/${NETWORK_ID}/connection_profile" - however this can and does return multiple channels when you have more than one.

How does the rest server know which channel to use, when its just given a card and i cant see how the card is bound to a channel ?

Thanks

POST: error

first time I POST /pourCup is OK, then I working otherthing about 40min, POST/pourCup again, get this error, but GET is OK.

{
  "error": {
    "statusCode": 500,
    "name": "Error",
    "message": "Error trying invoke business network. Error: No valid responses from any peers.\nResponse from attempted peer comms was an error: Error: 2 UNKNOWN: error executing chaincode: transaction returned with failure: Error: Failed to add object with ID 'CJB0119' in collection with ID 'Asset:org.ibm.coffee.cupCoffee' as the object already exists",
    "stack": "Error: Error trying invoke business network. Error: No valid responses from any peers.\nResponse from attempted peer comms was an error: Error: 2 UNKNOWN: error executing chaincode: transaction returned with failure: Error: Failed to add object with ID 'CJB0119' in collection with ID 'Asset:org.ibm.coffee.cupCoffee' as the object already exists\n    at _initializeChannel.then.then.then.then.catch (/home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:957:34)\n    at <anonymous>"
  }
}

Composer rest server docker image out of date

The composer rest server image that is being used is out of date. The version is 0.19.5 However the blockchain starter plan uses Fabric 1.2 which requires the composer components to be at least version 0.20.0 . Would it be possible to share the docker file for the composer-rest-server or update the one that is currently on dockerhub ? Or if not, how to move forward using the composer rest server,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.