IBM / evote

A voting application that leverages Hyperledger Fabric and the IBM Blockchain Platform to record and tally ballots.
https://developer.ibm.com/patterns/how-to-create-a-secure-e-voting-application-on-hyperledger-fabric/
Apache License 2.0
324 stars 165 forks source link

Unable to validate parameter due to ["should be string"] #50

Open GooGliko opened 4 years ago

GooGliko commented 4 years ago

Hello,

I am have implemented everything correctly and now trying to work some examples, I am making request and getting this error 2020-10-26T21:32:35.962Z - warn: [DiscoveryEndorsementHandler]: _build_endorse_group_member >> G0:0 - endorsement failed - Error: error in simulation: transaction returned with failure: Error: Unable to validate parameter due to ["should be string"] Failed to submit transaction: Error: Endorsement has failed after network.invoke Error: Endorsement has failed

Idk why this happening, I successfully generated wallet for app-admin, my config.json

{ "connection_file": "ibpConnection.json", "appAdmin": "app-admin", "appAdminSecret": "secret", "orgMSPID": "org1msp", "caName": "https://{secretCname}", "userName": "V1", "gatewayDiscovery": { "enabled": true, "asLocalhost": false } }

also when I made app-admin user in CA I added attributes also. So I think problem is in contracts, I have tried to generate contracts correctly from VS code but exactly can't understand how to export, can someone link me correct way to export contracts correctly to upload on IBM platform later?

GooGliko commented 4 years ago

also getting this if helps someone 2020-10-26T22:46:55.964Z - error: [Channel.js]: Channel:channel1 received discovery error:failed constructing descriptor for chaincodes:<name:"_lifecycle" >