You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
It seems there is a bug with net/http package, when leverage Golang version go1.23.2. When attempting to call an API using this client/account packages for example it simply returned no cached connection available when $env:GODEBUG='http2debug=1' is set, when its not it just returns an EOF most likely because of the reuse of the connection that's not there. The Octopus server is running TLS and at 1.2. The api calls work via web browser / PowerShell.
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
package main
import (
"fmt""net/url""github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/accounts""github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/client"
)
funcGetAccountByIDExample() {
var (
apiKeystring="<APIKEY>"octopusURLstring="https://<FQDN>/Octopus"spaceIDstring="Default"// account valuesaccountIDstring="<USERID>"
)
apiURL, err:=url.Parse(octopusURL)
iferr!=nil {
_=fmt.Errorf("error parsing URL for Octopus API: %v", err)
return
}
octopusClient, err:=client.NewClient(nil, apiURL, apiKey, "")
iferr!=nil {
_=fmt.Errorf("error creating API client: %v", err)
return
}
// get account by its IDaccount, err:=accounts.GetByID(octopusClient, spaceID, accountID)
iferr!=nil {
_=fmt.Errorf("error getting account: %v", err)
return
}
fmt.Printf("account: (%s)\n", account.GetID())
}
funcmain() {
GetAccountByIDExample()
}
Expected Behavior
It should establish a client connection to Octopus and query the accounts with query id. It should just return the same value as provided in the vars via std out.
Any Logs and/or Other Supporting Information
Environment and/or Versions
Octopus Server Version: [2024.2.9313]
go version go1.23.2 windows/amd64
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Description
It seems there is a bug with net/http package, when leverage Golang version go1.23.2. When attempting to call an API using this client/account packages for example it simply returned no cached connection available when
$env:GODEBUG='http2debug=1'
is set, when its not it just returns an EOF most likely because of the reuse of the connection that's not there. The Octopus server is running TLS and at 1.2. The api calls work via web browser / PowerShell.Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Expected Behavior
It should establish a client connection to Octopus and query the accounts with query id. It should just return the same value as provided in the vars via std out.
Any Logs and/or Other Supporting Information
Environment and/or Versions
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: