Fabcar Tutorial - Error: error sending transaction for invoke: could not send: EOF - hyperledger-fabric

I am trying to launch the sample Fabcar tutorial network using the command "./startFabric.sh javascript" but unfortunately getting the below error at the last step while submitting initLedger transaction to smart contract on mychannel.
So when I query the ledger, it doesn't return anything.
can somebody advise whats wrong with my test network? Kindly let me know if you need additional details.
Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response: payload:"\n \242tu\327\261\372F\2679&\205\027\010\255\323\025]\300~\273`\202\316\031zx\316\237\035\333\364\022\356\007\n\327\007\0227\n\n_lifecycle\022)\n'\n!namespaces/fields/fabcar/Sequence\022\002\010\005\022\233\007\n\006fabcar\022\220\007\032Y\n\004CAR0\032Q{"color":"blue","make":"Toyota","model":"Prius","owner":"Tomoko","docType":"car"}\032V\n\004CAR1\032N{"color":"red","make":"Ford","model":"Mustang","owner":"Brad","docType":"car"}\032]\n\004CAR2\032U{"color":"green","make":"Hyundai","model":"Tucson","owner":"Jin Soo","docType":"car"}\032]\n\004CAR3\032U{"color":"yellow","make":"Volkswagen","model":"Passat","owner":"Max","docType":"car"}\032V\n\004CAR4\032N{"color":"black","make":"Tesla","model":"S","owner":"Adriana","docType":"car"}\032Z\n\004CAR5\032R{"color":"purple","make":"Peugeot","model":"205","owner":"Michel","docType":"car"}\032W\n\004CAR6\032O{"color":"white","make":"Chery","model":"S22L","owner":"Aarav","docType":"car"}\032W\n\004CAR7\032O{"color":"violet","make":"Fiat","model":"Punto","owner":"Pari","docType":"car"}\032Y\n\004CAR8\032Q{"color":"indigo","make":"Tata","model":"Nano","owner":"Valeria","docType":"car"}\032\n\004CAR9\032T{"color":"brown","make":"Holden","model":"Barina","owner":"Shotaro","docType":"car"}\032\003\010\310\001"\r\022\006fabcar\032\0031.0" e

This issue has been resolved. I had downloaded the fabric samples twice on my PC which might have caused the issue. I deleted everything and downloaded the samples again before trying again and it worked!!

Related

Chaincode Query Transcation is not executing in EC2 Insance

please find the image first intsertion was happened sucessfully.I am trying to query my transaction in Amazon-EC2 but it is returning NULL with endorsement failure even though my insertion transaction is working fine in the local system.
This is the error I get:
endorsement failure during invoke. response: status:500 message:"transaction returned with failure: Error: {\"Error\":\"candidate does not exist with: 13VV1A0533\"}"
From the error it seems that the chaincode is missing error handling for scheduleInterview method.
What the error means is that there is no data for the key candidate id.
Do revert if this doesnt help.

Timeout while deploying nodejs based chaincode

I am getting the below error while trying to deploy any nodejs based chaincode on hyperledger 1.4 network :
Error: could not assemble transaction, err proposal response was not
successful, error code 500, msg timeout expired while starting
chaincode
I have even tried the base example chaincode_example02, that is also giving the same error.
Please help.

How to resolve timeout error while executing transactions in hyperledger fabric?

I'm trying to insert bulk data in to blockchain. For 11,000 records records the insert is happening without any fault. But if I try to insert more, Im getting the following error.
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction)
Im using fabric sdk. My fabric verion is 1.2. Can anybody say how to resolve this?
Try to increase the timeout the timeout value. If this dont work, check the chaincode container logs.
Nodejs SDK example

How to solve "Error: endorsement failure during query. response: status:500 message"?

Background: I modified the /examples/e2e_cli/ from Hyperledger-fabric and get this error message when running the end to end script.sh
Error: endorsement failure during query. response: status:500
message:"make sure the chaincode mycc has been successfully
instantiated and try again: getccdata mychannel/mycc responded with
error: could not find chaincode with name 'mycc'"
The chaincode is correctly instantiated. What could actually be causing this error?
This Jira ticket documents the problem and one thing that causes it... which does not seem directly tied to instantiation.
One cause for this error message is that the ports in the configtx.yaml are wrong or missing.
Missing
Addresses:
- orderer0.od1.example.com
- orderer1.od1.example.com
Correct
Addresses:
- orderer0.od1.example.com:7050
- orderer1.od1.example.com:7050

sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline

Hell everyone, I am trying to setup a multi-org hyperledger fabric network and I run it already successfully. But when I tried to connect using Node SDK to fabric network to get some data. I am facing below error, I suspect that it is because of the tls cert file but I dont exactly know whats the problem. Hope someone can help me on this. See below details:
Error:
var peer = fabric_client.newPeer(
'grpcs://localhost:7051', {
'pem': 'somepath/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem'
});
channel.addPeer(peer);

Resources