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

Invoking and debugging a contract - Error #3

Open
andreax64 opened this issue Apr 2, 2021 · 1 comment
Open

Invoking and debugging a contract - Error #3

andreax64 opened this issue Apr 2, 2021 · 1 comment

Comments

@andreax64
Copy link

Hi, I'm at point 1 of "Invoking and debugging a contract" in chapter 5 of the second edition of the book. I'm using Ubuntu 20.04 desktop with:
Visual Studio Code
Version: 1.55.0
Commit: c185983a683d14c396952dd432459097bc7f757f
Date: 2021-03-30T16:02:21.560Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.8.0-48-generic snap

IBM Blockchain Platform v2.0.2

All works fine so far but when I try to submit a transaction using the requestTrade method I get this error:

ERROR] Error submitting transaction: No valid responses from any peers. Errors:
peer=org1peer-api.127-0-0-1.nip.io:8080, status=500, message=error in simulation: transaction returned with failure: Error: GET_STATE failed: transaction ID: 92e44da6063a8ca291740870303d14a516a5d6cc1f478041f9b19ec8d9bc3d6a: invalid key. Empty string is not supported as a key by couchdb

Any suggestions?
Regards
Andrea

immagine

@VRamakrishna
Copy link
Contributor

@andreax64 I just noticed this issue. It seems I never got an email alert. Have you figure out the mistake?

Looking at this error message Empty string is not supported as a key by couchdb and the transaction you are submitting, I can see that the tradeId field is empty, which it should not be as that's the key for any trade record in the ledger database.

@pnovotnyic FYI.

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