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

全部配置完成后,使用"链码"-"验证"返回失败 #42

Open
Joick opened this issue Jan 30, 2019 · 1 comment
Open

全部配置完成后,使用"链码"-"验证"返回失败 #42

Joick opened this issue Jan 30, 2019 · 1 comment

Comments

@Joick
Copy link

Joick commented Jan 30, 2019

我的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}"}

@ydcun
Copy link

ydcun commented Jan 30, 2019 via email

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