J'ai un fichier docker-compose comme here. Je peux me connecter à 7051 et enregistrer mon client chaincode, mais lorsque je tente de se connecter à localhost: 7050, je reçois une erreur qui, lorsqu'il est testé avec boucle est la suivante:Point de terminaison Blockchain REST non accessible
curl -v localhost:7050
* STATE: INIT => CONNECT handle 0x80059aa8; line 1410 (connection #-5000)
* Rebuilt URL to: localhost:7050/
* Added connection 0. The cache now 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 to localhost (127.0.0.1) port 7050 (#0)
* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x80059aa8; line 1579 (connection #0)
* Marked for [keep alive]: HTTP default
* STATE: SENDPROTOCONNECT => DO handle 0x80059aa8; line 1597 (connection #0)
> GET/HTTP/1.1
> Host: localhost:7050
> User-Agent: curl/7.54.1
> Accept: */*
>
* STATE: DO => 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 for [closure]: Transfer returned error
* multi_done
* stopped the pause stream!
* Closing connection 0
* The cache now contains 0 members
* Expire cleared
curl: (56) Recv failure: Software caused connection abort
J'ai activé le port-forwarding pour mon docker toolbox vm pour tous les ports dans le docker composer le fichier: 7050, 7051, 7053.
Je lance docker à partir de Windows en utilisant la boîte à outils docker.
Ma configuration docker est la suivante:
- Version 1.12.2 Docker, construire bb80604
- docker-Compose la version 1.8.1, build 004ddae
quelqu'un peut me aider à dépanner mon problème d'API REST hyperledger?
TIA
On dirait qu'il y avait une API json REST jusqu'à la version 0.6 (https://github.com/hyperledger/fabric/blob/v0.6/core/rest/rest_api.json). Y at-il une raison pour laquelle cela a été interrompu? – ZeroGraviti