|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
Hi David, That's correct! However, we found a minor fix in the chaincode and post that the latest error logs give following stack trace: ``` [34m2021-01-12 09:22:03.362 UTC [endorser] callChaincode ->
Hi David, That's correct! However, we found a minor fix in the chaincode and post that the latest error logs give following stack trace: ``` [34m2021-01-12 09:22:03.362 UTC [endorser] callChaincode ->
|
By
chintanr97@...
· #9474
·
|
|
Write Fabric chaincode with zero code
#fabric
#fabric-chaincode
If you do not like to write boilerplate code repeatedly, or spend time to learn a new programming language supported by the Fabric chaincode. You may want to check this out: https://github.com/open-do
If you do not like to write boilerplate code repeatedly, or spend time to learn a new programming language supported by the Fabric chaincode. You may want to check this out: https://github.com/open-do
|
By
Yueming Xu
· #9472
·
|
|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
Your first log snippet showed CouchDB queries timing out after 35 seconds each. This is the core.yaml ledger.state.couchDBConfig.requestTimeout of 35s. It means that CouchDB is still processing the qu
Your first log snippet showed CouchDB queries timing out after 35 seconds each. This is the core.yaml ledger.state.couchDBConfig.requestTimeout of 35s. It means that CouchDB is still processing the qu
|
By
David Enyeart
· #9469
·
|
|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
Thanks a lot David for your response. So digging deeper into the logs, we found that peer was returning below error: [chaincode] BuildQueryResponse -> ERRO Failed to get query result from iterator [ch
Thanks a lot David for your response. So digging deeper into the logs, we found that peer was returning below error: [chaincode] BuildQueryResponse -> ERRO Failed to get query result from iterator [ch
|
By
chintanr97@...
· #9468
·
|
|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
Adding workarounds such as longer timeouts will only prolong your pain. You must address the root cause of the slow query in CouchDB. Troubleshoot it in a separate CouchDB environment until you have f
Adding workarounds such as longer timeouts will only prolong your pain. You must address the root cause of the slow query in CouchDB. Troubleshoot it in a separate CouchDB environment until you have f
|
By
David Enyeart
· #9467
·
|
|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
Hi David, The chaincode is performing a select query on the CouchDB documents, and the fields set for filtering the results are indexed while installing and instantiating the chaincode. The single que
Hi David, The chaincode is performing a select query on the CouchDB documents, and the fields set for filtering the results are indexed while installing and instantiating the chaincode. The single que
|
By
chintanr97@...
· #9465
·
|
|
API to get local MSPID in chaincode?
#fabric
#fabric-chaincode
#fabric-questions
Thanks. chaincode-go has the same API, shim.GetMSPID(), which returns the value of env CORE_PEER_LOCALMSPID.
Thanks. chaincode-go has the same API, shim.GetMSPID(), which returns the value of env CORE_PEER_LOCALMSPID.
|
By
Yueming Xu
· #9462
·
|
|
API to get local MSPID in chaincode?
#fabric
#fabric-chaincode
#fabric-questions
Hi, If I get your questions right, you want to fetch the MSPID of the peer that starts/endorses the chaincode. For that purpose you can use the chaincode shim API. In case it is java based chaincode y
Hi, If I get your questions right, you want to fetch the MSPID of the peer that starts/endorses the chaincode. For that purpose you can use the chaincode shim API. In case it is java based chaincode y
|
By
Tsvetan Georgiev
· #9459
·
|
|
API to get local MSPID in chaincode?
#fabric
#fabric-chaincode
#fabric-questions
when my chaincode wants to write to the implicit private data collection, I need to get the local MSPID where the chaincode is deployed. What is a good way to get it? check the ENV of CORE_PEER_LOCALM
when my chaincode wants to write to the implicit private data collection, I need to get the local MSPID where the chaincode is deployed. What is a good way to get it? check the ENV of CORE_PEER_LOCALM
|
By
Yueming Xu
· #9458
·
|
|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
The query appears to be a JSON find query. These queries will be slow or time out if they do not utilize a well designed index against the JSON data. See the CouchDB tutorial for more details: https:/
The query appears to be a JSON find query. These queries will be slow or time out if they do not utilize a well designed index against the JSON data. See the CouchDB tutorial for more details: https:/
|
By
David Enyeart
· #9450
·
|
|
Unable to Query data from Hyperledger Fabric
#couchdb
#fabric-chaincode
#hyperledger-fabric
Hi, While trying to get data from hyperledger fabric, we are getting following error at client side "Error While Query ERROR:Error: error getting results for query response error: QUERY_STATE_NEXT fai
Hi, While trying to get data from hyperledger fabric, we are getting following error at client side "Error While Query ERROR:Error: error getting results for query response error: QUERY_STATE_NEXT fai
|
By
hiteshdutt05@...
· #9448
·
|
|
chaincode commit
#fabric-chaincode
Hello, when chaincode is committed in version 2.x, it is installed with the block that is created on blockchain? and with the code inside that block we interact when we invoke transactions? or just we
Hello, when chaincode is committed in version 2.x, it is installed with the block that is created on blockchain? and with the code inside that block we interact when we invoke transactions? or just we
|
By
kokolaki@...
· #9343
·
|
|
Passing an array as argument to chaincode via Node.js SDK
#fabric-questions
#fabric-chaincode
I finally succeed to call the function by passing the first parameter with it JSON.strinify-ed, then laster unmarshal it in the chaincode. But I believe there are better ways.
I finally succeed to call the function by passing the first parameter with it JSON.strinify-ed, then laster unmarshal it in the chaincode. But I believe there are better ways.
|
By
@secure12
· #9341
·
|
|
Passing an array as argument to chaincode via Node.js SDK
#fabric-questions
#fabric-chaincode
Sorry, I don't quite understand. my_array is a single array here, no?
Sorry, I don't quite understand. my_array is a single array here, no?
|
By
@secure12
· #9337
·
|
|
Passing an array as argument to chaincode via Node.js SDK
#fabric-questions
#fabric-chaincode
Hello - The 'submitTransaction' function takes and array of parameters. In this case the transaction function has a single parameter, but it's an array. So you need to pass a single element array to '
Hello - The 'submitTransaction' function takes and array of parameters. In this case the transaction function has a single parameter, but it's an array. So you need to pass a single element array to '
|
By
Matthew White
· #9336
·
|
|
Passing an array as argument to chaincode via Node.js SDK
#fabric-questions
#fabric-chaincode
In the chaincode (in Golang) I have the following function: func (s *SmartContract) f(ctx contractapi.TransactionContextInterface, arr []string) error { /* function details */ } When I attempt to call
In the chaincode (in Golang) I have the following function: func (s *SmartContract) f(ctx contractapi.TransactionContextInterface, arr []string) error { /* function details */ } When I attempt to call
|
By
@secure12
· #9335
·
|
|
validation of endorsement policy for chaincode failed
#hyperledger-fabric
#consensus
#fabric-chaincode
Hey, I believe this might be a problem with the read/write set of your transactions. In your chaincode, read the private data hash (as suggested here) of the other (in terms of execution environment)
Hey, I believe this might be a problem with the read/write set of your transactions. In your chaincode, read the private data hash (as suggested here) of the other (in terms of execution environment)
|
By
@chbtt
· #9317
·
|
|
validation of endorsement policy for chaincode failed
#hyperledger-fabric
#consensus
#fabric-chaincode
Hi All, I have blockchain network consisting of two ORGs, each ORG having only single peer. And I have simple chaincode with several functions. One function that I'm invoking has two operations: read
Hi All, I have blockchain network consisting of two ORGs, each ORG having only single peer. And I have simple chaincode with several functions. One function that I'm invoking has two operations: read
|
By
...
· #9300
·
|
|
external chaincode service
#fabric-chaincode
#tls
Hi, I‘m looking for an example how to setup TLS for the shim.chaincode server. I would like to know how I can setup an example with TLS enabled.
Hi, I‘m looking for an example how to setup TLS for the shim.chaincode server. I would like to know how I can setup an example with TLS enabled.
|
By
...
· #9234
·
|
|
Inconsistent Explicit Private Data Collection in Fabric 2.0
#fabric-sdk-node
#fabric-chaincode
#policies
See the messages from yesterday: https://lists.hyperledger.org/g/fabric/topic/77728065#9183 People hit this often enough that I think we should extend the error message with some more details and sugg
See the messages from yesterday: https://lists.hyperledger.org/g/fabric/topic/77728065#9183 People hit this often enough that I think we should extend the error message with some more details and sugg
|
By
David Enyeart
· #9201
·
|