I am having trouble with the GetLocations call. Every time I try to execute it I receive the error:
SoftLayer_Exception: Object does not exist to execute method on. (SoftLayer_Location_Group::getLocations) (HTTP 200)
This makes me think that there is something wrong with the locationService object I created but I don't understand what. Does anyone see the issue?
package main
import (
"fmt"
"github.com/softlayer/softlayer-go/session"
"github.com/softlayer/softlayer-go/services"
)
func main() {
sess := session.New("user", "password")
locationService := services.GetLocationGroupService(sess)
locations, err := locationService.GetLocations()
if err != nil {
fmt.Printf("%s
",err.Error())
return
}
fmt.Printf("%+v", locations)
}