Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable o invoke functions of the contract "trade" #7

Open
rcaballeron opened this issue Aug 30, 2021 · 1 comment
Open

Unable o invoke functions of the contract "trade" #7

rcaballeron opened this issue Aug 30, 2021 · 1 comment

Comments

@rcaballeron
Copy link

I am working through the chapter 5 Designing Smart Contract Transactions and Ledger Data Structures|Deploying a contract in the testing environment. I got stuck on step 5 which should allow to see the functions to be invoked. For some reason when I connected to the Fabric Gateway in VS Code it did not bring in the drop down menu for '[email protected]' under the Fabric Gateway section.

I'mreceiving an error that says it could not get the metadata for smart contract trade contract

[8/30/2021 5:01:13 PM] [INFO] Starting IBM Blockchain Platform Extension
[8/30/2021 5:01:13 PM] [INFO] Clearing extension cache
[8/30/2021 5:01:13 PM] [INFO] Restoring command registry
[8/30/2021 5:01:14 PM] [INFO] Registering commands
[8/30/2021 5:01:14 PM] [INFO] Execute stored commands in the registry
[8/30/2021 5:01:14 PM] [INFO] IBM Blockchain Platform Extension activated
[8/30/2021 5:01:25 PM] [INFO] connect
[8/30/2021 5:01:26 PM] [SUCCESS] Connecting to 1 Org Local Fabric - Org1 Gateway
[8/30/2021 5:02:09 PM] [WARNING] Could not get metadata for smart contract trade. The smart contract may not have been developed with the programming model delivered in Hyperledger Fabric v1.4+ for Java, JavaScript and TypeScript. Error: Transaction function "org.hyperledger.fabric:GetMetadata" returned an error: Query failed. Errors: ["Peer org1peer-api.127-0-0-1.nip.io:8080: error in simulation: failed to execute transaction 35b78a99699a64c086d80d3dffbb2c2c3e6a53568e76dc705e4576ef2cda7a6a: could not launch chaincode trade_1.0.0:3616ac57012c1d8281829f856f37909a427c92ded1cd709747c7afd921b8b7c7: chaincode registration failed: container exited with 0"]

The smart contract may not have been developed with the programming model delivered in Hyperledger Fabric v1.4+ for Java, JavaScript and TypeScript. Error: Transaction function "org.hyperledger.fabric:GetMetadata" returned an error: Query failed. Errors: ["Peer org1peer-api.127-0-0-1.nip.io:8080: error in simulation:

I've repeated the steps and the error continues

image

@florencioq
Copy link

same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants