docker - Blockchain REST endpoint not accessible -


i have docker-compose file here. can connect 7051 , register chaincode client, when try connect localhost:7050, error when tested curl follows :

curl -v localhost:7050 * state: init => connect handle 0x80059aa8; line 1410 (connection #-5000) * rebuilt url to: localhost:7050/ * added connection 0. cache contains 1 members * state: connect => waitresolve handle 0x80059aa8; line 1446 (connection #0) *   trying 127.0.0.1... * tcp_nodelay set * state: waitresolve => waitconnect handle 0x80059aa8; line 1527 (connection #0) * connected localhost (127.0.0.1) port 7050 (#0) * state: waitconnect => sendprotoconnect handle 0x80059aa8; line 1579 (connection #0)  * marked [keep alive]: http default * state: sendprotoconnect => handle 0x80059aa8; line 1597 (connection #0) > / http/1.1 > host: localhost:7050 > user-agent: curl/7.54.1 > accept: */* > * state: => do_done handle 0x80059aa8; line 1676 (connection #0) * state: do_done => waitperform handle 0x80059aa8; line 1801 (connection #0) * state: waitperform => perform handle 0x80059aa8; line 1811 (connection #0) * recv failure: software caused connection abort * marked [closure]: transfer returned error * multi_done * stopped pause stream! * closing connection 0 * cache contains 0 members * expire cleared curl: (56) recv failure: software caused connection abort 

i have enabled port-forwarding docker toolbox vm ports in docker compose file : 7050, 7051, 7053.

i run docker windows using docker toolbox.

my docker setup follows:

  • docker version 1.12.2, build bb80604
  • docker-compose version 1.8.1, build 004ddae

can me troubleshoot hyperledger rest api problem ?

tia

hypeledger fabric version 1.0.0 doesn't have rest api, communication done grpc. interact hyperledger fabric need leverage 1 of provided sdks, available:

  1. java sdk
  2. node sdk
  3. go sdk
  4. python sdk

to test basic functionality might consider using peer cli tool provide capabilities work against endorsing peer create new channel, join peer channel, install/instantiate of chaincode , of course invoke , query chaincode. can find more information in documentation.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -