Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientTimeout exceeded while awaiting headers #118

Open
barryCrunch opened this issue Apr 21, 2020 · 0 comments
Open

ClientTimeout exceeded while awaiting headers #118

barryCrunch opened this issue Apr 21, 2020 · 0 comments

Comments

@barryCrunch
Copy link

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)
         }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant