You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/08/08 15:48:59 UTC

[GitHub] tleyden opened a new issue #22: Example is broken: whisk.NewClient(http.DefaultClient, nil)

tleyden opened a new issue #22: Example is broken: whisk.NewClient(http.DefaultClient, nil)
URL: https://github.com/apache/incubator-openwhisk-client-go/issues/22
 
 
   From the README example:
   
   ```
   client, _ := whisk.NewClient(http.DefaultClient, nil)
   action, resp, err := client.Actions.List("hello")
   ```
   
   But this breaks, since inside the `NewClient()` code it calls `if config.Insecure {..}` on a nil config, which panics with `panic: runtime error: invalid memory address or nil pointer dereference`
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services