I’ve been working with Hyperledger Fabric and ran into an error while testing with the Python SDK. The error message I get is:
“error”: “<_MultiThreadedRendezvous of RPC that terminated with:ntstatus = StatusCode.UNKNOWNntdetails = “error validating proposal: access denied: channel [mychannel3] creator org [m-R6N74MK65FF57DMGWPW47LSRBI]”ntdebug_error_string = “UNKNOWN:Error received from peer {created_time:”2024-08-03T09:07:56.240768411+00:00″, grpc_status:2, grpc_message:”error validating proposal: access denied: channel [mychannel3] creator org [m-R6N74MK65FF57DMGWPW47LSRBI]”}”n>”
I think issue with signing transaction as query with SDK is working well. Can I know which certificate to passed and where?
Additionally, if I change the user cert to admin-msp/signcerts/cert.pem, I get a different error: “Socket connection closed”.
Any ideas on what might be causing this issue and how to resolve it? Thanks!
Here’s my JSON configuration:
{
"name":"%networkname%",
"description":"Sample network contains 2 peers and 1 CA for Python SDK testing",
"version":"1.0",
"channels":{
"mychannel3":{
"orderers":[
"orderer.example.com"
],
"peers":{
"peer0.%org1%.example.com":{
"endorsingPeer":true,
"chaincodeQuery":true,
"ledgerQuery":true,
"eventSource":true
},
"peer1.%org1%.example.com":{
"endorsingPeer":true,
"chaincodeQuery":true,
"ledgerQuery":true,
"eventSource":true
}
}
}
},
"organizations":{
"Org1":{
"mspid":"%memeber_id%",
"peers":[
"peer0.%org1%.example.com",
"peer1.%org1%.example.com"
],
"certificateAuthorities":[
"ca-%org1%"
],
"users":{
"jona":{
"cert":"%path_to_cert%",
"private_key":"%path_to_private_key%"
}
}
}
},
"orderers":{
"orderer.example.com":{
"url":"%orderer_url%",
"grpcOptions":{
"ssl-target-name-override":"%orderer_url without port%"
},
"tlsCACerts":{
"path":"%path_to_tlsCACerts%"
}
}
},
"peers":{
"peer0.%org1%.example.com":{
"url":"%peer0_url%",
"eventUrl":"%peer0_eventUrl%",
"grpcOptions":{
"ssl-target-name-override":"%peer0_url_without_port%"
},
"tlsCACerts":{
"path":"%path_to_tlsCACerts%"
}
},
"peer1.%org1%.example.com":{
"url":"%peer1_url%",
"eventUrl":"%peer1_eventUrl%",
"grpcOptions":{
"ssl-target-name-override":"%peer1_url_without_port%"
},
"tlsCACerts":{
"path":"%path_to_tlsCACerts%"
}
}
},
"certificateAuthorities":{
"ca-%org1%":{
"url":"%ca_url%",
"httpOptions":{
"verify":false
},
"tlsCACerts":{
"path":"%path_to_tlsCACerts%"
},
"caName":"%ca_name%"
}
},
"client":{
"organization":"%org1%",
"credentialStore":{
"path":"%path_to_credential_store%",
"cryptoStore":{
"path":"%path_to_crypto_store%"
},
"wallet":"%wallet_name%"
}
}
}
jona joy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.