I am trying to learn about hyperledger composer by going through the tutorials. Everything works on the playground so I followed the tutorial and created a cluster with bluemix.
I was testing the hosted playground and I notice all transactions, even if deployed with a sample network like trade-network, returns error saying the asset or participant does not exist
Error: Object with ID 'tradingSymbol:ABC' in collection with ID 'Asset:org.acme.trading.Commodity' does not exist
Any advice on troubleshooting the above error?
最可能的解释是您不需要tradingSymbol:
前缀,并且您的资产ID仅为ABC
。
Be aware that Composer Playground use, in your case, tradingSymbol:ABC
as the ID, so when you try to retrieve an object you must consider the ID like tradingSymbol:ABC
.
If you want to use the ID ABC
you must erase tradingSymbol:ABC
when you create the object using the playground and write just ABC
. I know it is a little bit tricky.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.