Intercept Invoke call, rcp error #fabric-questions #network #hyperledger-fabric


Tenci <eagles01@...>
 

Hi,

I want to intercept an invoke call (fab1.4, first-network, disabled tls, working on CLI). My idea was to to make use of burp/mitmproxy (listening at 127.0.0.8080) to intercept the invoke call to change content of the gRPC msg.

Without TLS, the call started of the CLI Container:

root@52df464e4390:/etc#  peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n mycc --peerAddresses 127.0.0.1:8080 -c '{"Args":["invoke","a","b","10"]}'

 

leads to the following error:

Error: error getting endorser client for invoke: endorser client failed to connect to 127.0.0.1:8080: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:8080: connect: connection refused"

 

Expected: Arrival of gRPC stream at 127.0.0.8080, which normally is visible (eg. in using wireshark pb decoder) for peer0.org1.example.com here. All other IPs leads to the error msg above.

 

 

Join fabric@lists.hyperledger.org to automatically receive all group messages.