tleyden opened a new issue #25: Not adding "api" to the URL 
   I'm running against Bluemix, and trying to list activations with:
        config, err := WhiskConfigFromEnvironment()
        if err != nil {
                return nil, err
        client, _ := whisk.NewClient(http.DefaultClient, config)
        activations, resp, err := client.Activations.List(nil)
   In `WhiskConfigFromEnvironment()` I?m setting `config.AUTH` and 
`config.APIHOST` based on what?s in my `~/.wskprops` file.
   However it's getting a 404 because it's trying to go to 
``, which is missing 
`api` in the base url.  
   If I run `wsk -d activation list` I can see that it goes to 
   I verified that it fixes the issue w/ this (hacky) workaround:
       requestUrlString := strings.Replace(requestUrl.String(), "v1", "api/v1", 
       req, err := http.NewRequest(method, requestUrlString, buf)
   After that change, `client.Activations.List(nil)` returns the list of 
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:

With regards,
Apache Git Services

Reply via email to