Giter Club home page Giter Club logo

consul-to-json's People

Contributors

halradaideh avatar lekoder avatar

Stargazers

 avatar

Watchers

 avatar  avatar

consul-to-json's Issues

Restore failed

I've been using this utility successfully but recently the restore failed. The difference from before was that the JSON file was relatively large compared to before (30Mb) and heavily populated with Hashicorp Vault entries which consisted of non-printable characters.

$ consul-to-json restore consul_backup_1610031200.json
Maximum call stack size exceeded

I recovered this by manually removing the Vault entries which at this point I was not yet using.

Error when returning keys that have similar names in a path

If we have 2 keys something like
'default/rundeck_port_type'
'default/rundeck_port'

and we try to initiate
consul-to-json backup -k default/rundeck_port file

this will return an error like
image

however using
'default/rundeck_port_type'
it will return successfully

Tests are missing

For a very least test should cover spinning up a bootstraped consul server in isolated environment, populating it with mocked data, reading it back and comparing results.

Acceptance fails for 1e5 keys

Acceptance tests fail when trying to restore large JSON file with 100000 keys:

Unhandled rejection Error: connect EADDRNOTAVAIL 127.0.0.1:8500 - Local (127.0.0.1:0)
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at connect (net.js:875:16)
    at net.js:964:9
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

This could be connected with #3

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.