GithubHelp home page GithubHelp logo

aura-cli's People

Contributors

adam-cowley avatar danielruminski avatar darrellwarde avatar lackofmorals avatar liam-doodson avatar ravikiran-sulikeri avatar rthennan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aura-cli's Issues

After installation, first time using aura config gives error

Environment

  • Mac M1 Pro. with Ventura OS 13.4.1
  • Python 3.11.4

Steps to reproduce

  • Create new python virtual environment
  • Activate venv
  • Install aura cli with pip install aura-cli
  • Run aura cli with config aura config
  • Error happens
  File "/Users/jgiffard/Projects/aura_cli_python/venv/bin/aura", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1685, in invoke
    super().invoke(ctx)
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/aura.py", line 13, in cli
    ctx.obj = CLIConfig()
              ^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/config_repository.py", line 14, in __init__
    self.config = self.load_config()
                  ^^^^^^^^^^^^^^^^^^
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/config_repository.py", line 24, in load_config
    self.validate_config(config)
  File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/config_repository.py", line 115, in validate_config
    self.config["DEFAULTS"] = {}
    ^^^^^^^^^^^
AttributeError: 'CLIConfig' object has no attribute 'config'

Feature request: Notify if new version is available

It would be useful to notify the end user that there is a new version of aura-cli and how to upgrade.

We would do this in a similar way to pip, where it checks for this on each execution and displays a message if there's a new version along with how to upgrade.

Error: Connection error

Using Aura API with curl command works with the following command
curl --insecure --request GET "https://api.neo4j.io/v1beta3/instances" ^
More? --header "accept: application/json" ^
More? --header "Authorization: Bearer %bearer_token%" -vvv

where
C:>aura tenants list --raw --include
Error: Connection error

--wait returns too soon and first queries fail

Often the first few queries I execute after --wait fail with server errors related to routing. Perhaps once Aura reports an instance as being available, the CLI could use the driver's verify_connectivity() function to confirm the server is read for queries.

Use of --wait causes instance create output to exclude password

If aura instance create is called with the --wait option. The output is missing password and username fields. It looks like this:

{
  "cloud_provider": "gcp",
  "connection_url": "neo4j+s://*********.databases.neo4j.io",
  "id": "*********",
  "memory": "8GB",
  "metrics_integration_url": "https://customer-metrics-api.neo4j.io/api/v1/*********/*********/metrics",
  "name": "*********",
  "status": "running",
  "storage": "16GB",
  "tenant_id": "*********",
}

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.