You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@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.
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
The text was updated successfully, but these errors were encountered: