Giter VIP home page Giter VIP logo

Comments (10)

devth avatar devth commented on July 24, 2024 1

127.0.0.1 is coming from the consul lib. When it's required here, global is undefined.

from git2consul.

calvn avatar calvn commented on July 24, 2024

The only reference (apart from utils/config_seeder.js) on 127.0.0.1 is on #L12. How are you passing in the endpoint option, with -e, --endpoint flag or with the environment variable CONSUL_ENDPOINT?

from git2consul.

devth avatar devth commented on July 24, 2024

I've tried all 3. And global.endpoint is correct.

from git2consul.

devth avatar devth commented on July 24, 2024

Here's the rest of the err:

{"stack":"Error: connect ECONNREFUSED 127.0.0.1:8500\n    at Object.exports._errnoException (util.js:874:11)\n    at exports._exceptionWithHostPort (util.js:897:20)\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)","code":"ECONNREFUSED"},"msg":"connect ECONNREFUSED 127.0.0.1:8500","time":"2016-03-21T15:30:23.604Z","v":0}

Maybe the problem is on my end. Still investigating...

from git2consul.

calvn avatar calvn commented on July 24, 2024

Is it because index.js is requiring config_seeder.js and config_reader.js before the variables are being set?

from git2consul.

devth avatar devth commented on July 24, 2024

Yes. Happened in d89f571

from git2consul.

calvn avatar calvn commented on July 24, 2024

Going to issue a patch for that, thanks for the report!

from git2consul.

devth avatar devth commented on July 24, 2024

Great, thanks!

from git2consul.

calvn avatar calvn commented on July 24, 2024

This should be patched on v0.12.8 now.

from git2consul.

devth avatar devth commented on July 24, 2024

@cleung2010 thanks, works now!

from git2consul.

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.