-
Notifications
You must be signed in to change notification settings - Fork 214
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
全部配置完成后,使用"链码"-"验证"返回失败 #42
Comments
我也是不知道如何是好,留下联系方式一起探讨下
在 2019年1月30日,17:44,Joick <notifications@github.com<mailto:notifications@github.com>> 写道:
我的peer的名称与address之类的所有配置都是与<hyperledger fabric开发实战-快速掌握区块链技术>一书中的一致,并且能购跑通e2e,solo单节点的实例
在F.N.S中录入上述的节点等信息后,使用链码的验证功能查询(或者调用)时(使用的是,"query,a","invoke,a,b,1")任然提示错误,一下是页面返回信息描述,请帮忙解答一下
请求接口:http://localhost:port/state/invoke
请求方式:POST
请求参数:{"flag":"9b12e5e87a982163","strArray":["invoke","a","b","1"],"key":"MtsSPmSB"}
请求结果:{"code":9999,"error":"Request failed: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0.org1.example.com<http://peer0.org1.example.com>. Status FAILURE, details: Sending proposal to peer0.org1.example.com<http://peer0.org1.example.com> failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Unable to resolve host peer0.org1.example.com<http://peer0.org1.example.com>, cause=java.net.UnknownHostException: peer0.org1.example.com<http://peer0.org1.example.com>\n\tat java.net.InetAddress.getAllByName0(InetAddress.java:1280)\n\tat java.net.InetAddress.getAllByName(InetAddress.java:1192)\n\tat java.net.InetAddress.getAllByName(InetAddress.java:1126)\n\tat io.grpc.internal.DnsNameResolver$JdkResolver.resolve(DnsNameResolver.java:497)\n\tat io.grpc.internal.DnsNameResolver$1.run(DnsNameResolver.java:200)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n}"}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#42>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEBoJ9jcjK3Jha2q_dT5UFJDRV_jye1vks5vIWligaJpZM4aZ0TO>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的peer的名称与address之类的所有配置都是与<hyperledger fabric开发实战-快速掌握区块链技术>一书中的一致,并且能购跑通e2e,solo单节点的实例
在F.N.S中录入上述的节点等信息后,使用链码的验证功能查询(或者调用)时(使用的是,"query,a","invoke,a,b,1")任然提示错误,一下是页面返回信息描述,请帮忙解答一下
请求接口:http://localhost:port/state/invoke
请求方式:POST
请求参数:{"flag":"9b12e5e87a982163","strArray":["invoke","a","b","1"],"key":"MtsSPmSB"}
请求结果:{"code":9999,"error":"Request failed: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0.org1.example.com. Status FAILURE, details: Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Unable to resolve host peer0.org1.example.com, cause=java.net.UnknownHostException: peer0.org1.example.com\n\tat java.net.InetAddress.getAllByName0(InetAddress.java:1280)\n\tat java.net.InetAddress.getAllByName(InetAddress.java:1192)\n\tat java.net.InetAddress.getAllByName(InetAddress.java:1126)\n\tat io.grpc.internal.DnsNameResolver$JdkResolver.resolve(DnsNameResolver.java:497)\n\tat io.grpc.internal.DnsNameResolver$1.run(DnsNameResolver.java:200)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n}"}
The text was updated successfully, but these errors were encountered: