Github user sjcorbett commented on the issue:

    https://github.com/apache/brooklyn-client/pull/42
  
    On the current master:
    ```
    $ ./target/bin/br login http://ldsn3e
    Get http://ldsn3e/v1/server/version: dial tcp: lookup ldsn3e on 
66.28.0.45:53: no such host
    ```
    
    With the changes in this PR:
    ```
    $ ./target/bin/br login http://ldsn3e
    Enter Username: sdsada
    Enter Password:
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal 0xb code=0x1 addr=0x10 pc=0x647b1]
    
    goroutine 1 [running]:
    panic(0x4134c0, 0xc820012120)
            /usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
    
github.com/apache/brooklyn-client/cli/net.(*Network).SendRequestGetStatusCode(0xc820010600,
 0xc8200e2000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/net/net.go:124
 +0x1e1
    github.com/apache/brooklyn-client/cli/api/version.Version(0xc820010600, 
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/api/version/version.go:31
 +0xb4
    github.com/apache/brooklyn-client/cli/commands.(*Login).Run(0xc8200133f0, 
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/commands/login.go:125
 +0xfa8
    
github.com/apache/brooklyn-client/cli/command_runner.ConcreteRunner.RunCmdByName(0x7bdd60,
 0xc820013410, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/command_runner/runner.go:49
 +0xe7
    
github.com/apache/brooklyn-client/cli/command_runner.(*ConcreteRunner).RunCmdByName(0xc820016540,
 0x49bb98, 0x5, 0xc8200828c0, 0x0, 0x0)
            <autogenerated>:1 +0xe0
    github.com/apache/brooklyn-client/cli/app.getCommand.func1(0xc8200828c0)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/app/app.go:82
 +0x57
    
github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli.Command.Run(0x49bb98,
 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc8200b4fe0, 0x1e, 0x0, ...)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli/command.go:174
 +0x1399
    
github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli.(*App).Run(0xc8200823c0,
 0xc82000b6b0, 0x3, 0x3, 0x0, 0x0)
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli/app.go:187
 +0x112b
    main.main()
            
/Users/sam/code/brooklyn.io/brooklyn/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/br/brooklyn.go:62
 +0x915
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to