GithubHelp home page GithubHelp logo

Comments (4)

masterDev1985 avatar masterDev1985 commented on July 29, 2024

127.0.0.1? Are you attempting to run this demo on a local hyperledger network? If so, I'd suspect that the configuration object that specifies the addresses/ports of your peers and ca is incorrect.

from cp-web.

bd37 avatar bd37 commented on July 29, 2024

Thanks, master, I specifies with the following. Is that correct?
"peers": [
{
"discovery_host": "127.0.0.1",
"discovery_port": 30303,
"api_host": "127.0.0.1",
"api_port_tls": 443,
"api_port": 5000,
"type": "peer",
"network_id": "vp0",
"id": "dev_vp0",
"api_url": "http://127.0.0.1:5000"
}
],
"ca": {
"26080cd8-f642-4741-bfdb-921ddc9ce2b2_ca": {
"url": "127.0.0.1:30303",
"discovery_host": "127.0.0.1",
"discovery_port": 30303,
"api_host": "127.0.0.1",
"api_port_tls": 30303,
"api_port": ,
"type": "ca",
"network_id": "26080cd8-f642-4741-bfdb-921ddc9ce2b2",
"container_id": "49256ec6f9aae4726788e43449d6bc020ad462490cce676b65db211539267b36"

from cp-web.

masterDev1985 avatar masterDev1985 commented on July 29, 2024

@bd37 It looks like the SDK is attempting to connect to the peer through port 443. The 'connection refused' message indicates to me that port 443 is either not being forwarded by your vagrant environment, or the peer is not listening to that forwarded port from inside the VM. What ports are being forwarded in your vagrant file? This is the file under fabric/devenv.

Here are the lines you should be looking for:

  config.vm.network :forwarded_port, guest: 5000, host: 5000 # Openchain REST services
  config.vm.network :forwarded_port, guest: 30303, host: 30303 # Openchain gRPC services
  config.vm.network :forwarded_port, guest: 50051, host: 50051 # Membership service
  config.vm.network :forwarded_port, guest: 31315, host: 31315 # GRPCCient gRPC services

from cp-web.

SamGJohn avatar SamGJohn commented on July 29, 2024

Here's a discussion that might help you solve your econnrefused issue

from cp-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.