ClientTimeout exceeded while awaiting headers
barryCrunch opened this issue · 0 comments
barryCrunch commented
I'm receiving the following error when trying to pull any Resource.
Get "https://<ipaddress>/mgmt/tm/ltm/virtual": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I'm fairly new to golang so this could very well be something on my side.
- BigIP Version - 13.1.0.8
- go-bigip version - latest commit
Code
package main
import (
"fmt"
"github.com/scottdware/go-bigip"
)
func main() {
config := bigip.ConfigOptions{
APICallTimeout: 10000,
}
f5 := bigip.NewSession("https://<ipaddress>", "user", "password", &config)
vservers, err := f5.VirtualServers()
if err != nil {
fmt.Println("THERE WAS AN ERROR")
fmt.Println(err)
}
fmt.Println(vservers)
test, err := f5.GetVirtualServer("VS_NAME")
if err != nil {
fmt.Println("THERE WAS AN ERROR")
fmt.Println(err)
}
fmt.Println(test)
for _, vs := range vservers.VirtualServers {
fmt.Printf("Name: %s\n", vs.Name)
}
}