error executing hyperledger fabric code on localhost:3000 (through REST) - transactionId

做~自己de王妃 提交于 2019-12-02 08:28:10

The transactionID (in the example) ideally should not appear in the Swagger example for the POST operations. That example is generated by the LoopBack to Swagger conversion that is done by LoopBack code (not Composer). You need to remove it (and the timestamp too ideally, as Composer will update its own) in your JSON.

see Why can I submit a transactionID with a transaction in hyperledger composer REST? for an answer. This loopback/swagger issue was created against loopback - last issue created was https://github.com/strongloop/loopback/issues/3510

I also faced the similar problem, after looking into it and spending lot of time. I found this is not the problem of npm and node.js, if we are installing them as non root. This is the problem of Loopback so you have to make an API JSON request without "transactionId" and "timestamp" means remove both of them. It will work fine as loopback swagger will update it automatically. I hope it will work for all, who are facing the same kind of problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!