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 to validate parameter due to ["should be string"] #50

Open
GooGliko opened this issue Oct 26, 2020 · 1 comment
Open

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

GooGliko opened this issue Oct 26, 2020 · 1 comment

Comments

@GooGliko
Copy link

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
Copy link
Author

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" >

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

1 participant