IBM / global-financing-blockchain

A global finance application on blockchain developed using the IBM Blockchain Platform Extension for VS Code
https://developer.ibm.com/patterns/global-financing-use-case-for-blockchain/
Apache License 2.0
69 stars 73 forks source link

The "Deliver" function does not work. #19

Open Noelwong opened 4 years ago

Noelwong commented 4 years ago

Following the instructions in the README leads to this error when executing the "Delivered" button in shipper.

image image image

error: [Transaction]: _validatePeerResponses: No valid responses from any peers. 1 peer error responses:
    peer=peer0.org1.example.com, status=500, message=transaction returned with failure: Error: order status not shipping requested or delivering
Error processing transaction. Error: No valid responses from any peers. 1 peer error responses:
    peer=peer0.org1.example.com, status=500, message=transaction returned with failure: Error: order status not shipping requested or delivering
Error: No valid responses from any peers. 1 peer error responses:
    peer=peer0.org1.example.com, status=500, message=transaction returned with failure: Error: order status not shipping requested or delivering
    at Transaction._validatePeerResponses (/Users/hoklamwong/Documents/global-financing-blockchain-master/web-app/node_modules/fabric-network/lib/transaction.js:276:10)
    at Transaction.submit (/Users/hoklamwong/Documents/global-financing-blockchain-master/web-app/node_modules/fabric-network/lib/transaction.js:189:34)
    at <anonymous>

Node v8.12.0 npm v6.4.1 OSX Catalina 10.15.2 VSCode 1.39.0 docker-compose version 1.25.4, build 8d51620a Docker version 19.03.8, build afacb8b go version go1.13.6 darwin/amd64

vladimirivkovic commented 3 years ago

Second === should be replaced with == in this line. Alternatively, you can remove JSON.stringify() around orderStatus.Delivering.code.