Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Andromelus/49e2f11d3a56bb6c6716d58ffae8b190 to your computer and use it in GitHub Desktop.
Save Andromelus/49e2f11d3a56bb6c6716d58ffae8b190 to your computer and use it in GitHub Desktop.
wearetheledger/fabric-mock-stub error
florian@florian-VirtualBox:~/Bureau/blockchain-code/chaincodes/test$ node test.js
2019-06-18T08:47:31.016Z ERROR [lib/chaincode.js] uncaughtException: The "peer.address" program argument must be set to a legitimate value of <host>:<port>
{"date":"Tue Jun 18 2019 10:47:31 GMT+0200 (CEST)","process":{"pid":7006,"uid":1000,"gid":1000,"cwd":"/home/florian/Bureau/blockchain-code/chaincodes/test","execPath":"/home/florian/.nvm/versions/node/v8.15.0/bin/node","version":"v8.15.0","argv":["/home/florian/.nvm/versions/node/v8.15.0/bin/node","/home/florian/Bureau/blockchain-code/chaincodes/test/test.js"],"memoryUsage":{"rss":50659328,"heapTotal":23494656,"heapUsed":16076088,"external":99615}},"os":{"loadavg":[0.18408203125,0.45166015625,0.57373046875],"uptime":2712},"trace":[{"column":9,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js","function":"parsePeerUrl","line":344,"method":null,"native":false},{"column":13,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js","function":"Function.start","line":107,"method":"start","native":false},{"column":6,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/index.js","function":null,"line":333,"method":null,"native":false},{"column":30,"file":"module.js","function":"Module._compile","line":653,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Module._extensions..js","line":664,"method":".js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":566,"method":"load","native":false},{"column":12,"file":"module.js","function":"tryModuleLoad","line":506,"method":null,"native":false},{"column":3,"file":"module.js","function":"Module._load","line":498,"method":"_load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":597,"method":"require","native":false},{"column":18,"file":"internal/module.js","function":"require","line":11,"method":null,"native":false}],"stack":["Error: The \"peer.address\" program argument must be set to a legitimate value of <host>:<port>"," at parsePeerUrl (/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js:344:9)"," at Function.start (/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js:107:13)"," at Object.<anonymous> (/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/index.js:333:6)"," at Module._compile (module.js:653:30)"," at Object.Module._extensions..js (module.js:664:10)"," at Module.load (module.js:566:32)"," at tryModuleLoad (module.js:506:12)"," at Function.Module._load (module.js:498:3)"," at Module.require (module.js:597:17)"," at require (internal/module.js:11:18)"]}
2019-06-18T08:47:31.020Z ERROR [lib/handler.js] uncaughtException: The "peer.address" program argument must be set to a legitimate value of <host>:<port>
{"date":"Tue Jun 18 2019 10:47:31 GMT+0200 (CEST)","process":{"pid":7006,"uid":1000,"gid":1000,"cwd":"/home/florian/Bureau/blockchain-code/chaincodes/test","execPath":"/home/florian/.nvm/versions/node/v8.15.0/bin/node","version":"v8.15.0","argv":["/home/florian/.nvm/versions/node/v8.15.0/bin/node","/home/florian/Bureau/blockchain-code/chaincodes/test/test.js"],"memoryUsage":{"rss":50802688,"heapTotal":23494656,"heapUsed":16331736,"external":99639}},"os":{"loadavg":[0.18408203125,0.45166015625,0.57373046875],"uptime":2712},"trace":[{"column":9,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js","function":"parsePeerUrl","line":344,"method":null,"native":false},{"column":13,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js","function":"Function.start","line":107,"method":"start","native":false},{"column":6,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/index.js","function":null,"line":333,"method":null,"native":false},{"column":30,"file":"module.js","function":"Module._compile","line":653,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Module._extensions..js","line":664,"method":".js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":566,"method":"load","native":false},{"column":12,"file":"module.js","function":"tryModuleLoad","line":506,"method":null,"native":false},{"column":3,"file":"module.js","function":"Module._load","line":498,"method":"_load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":597,"method":"require","native":false},{"column":18,"file":"internal/module.js","function":"require","line":11,"method":null,"native":false}],"stack":["Error: The \"peer.address\" program argument must be set to a legitimate value of <host>:<port>"," at parsePeerUrl (/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js:344:9)"," at Function.start (/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js:107:13)"," at Object.<anonymous> (/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/index.js:333:6)"," at Module._compile (module.js:653:30)"," at Object.Module._extensions..js (module.js:664:10)"," at Module.load (module.js:566:32)"," at tryModuleLoad (module.js:506:12)"," at Function.Module._load (module.js:498:3)"," at Module.require (module.js:597:17)"," at require (internal/module.js:11:18)"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment