{"record":{"id":"2825eac19cbaa30f","repo":"Netflix/chaosmonkey","slug":"could-not-retrieve-account-info-for-s-from-spinna","errorCode":null,"errorMessage":"could not retrieve account info for %s from spinnaker url %s","messagePattern":"could not retrieve account info for (.+?) from spinnaker url (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"spinnaker/spinnaker.go","lineNumber":176,"sourceCode":"\t} else if x509Cert != \"\" {\n\t\tclient, err = getClientX509(x509Cert, x509Key)\n\t\tif err != nil {\n\t\t\treturn Spinnaker{}, err\n\t\t}\n\t} else {\n\t\tclient = new(http.Client)\n\t}\n\n\treturn Spinnaker{endpoint: endpoint, client: client, user: user}, nil\n}\n\n// AccountID returns numerical ID associated with an AWS account\nfunc (s Spinnaker) AccountID(name string) (id string, err error) {\n\turl := s.accountURL(name)\n\n\tresp, err := s.client.Get(url)\n\tif err != nil {\n\t\treturn \"\", errors.Wrapf(err, \"could not retrieve account info for %s from spinnaker url %s\", name, url)\n\t}\n\n\tdefer func() {\n\t\tif cerr := resp.Body.Close(); cerr != nil && err == nil {\n\t\t\terr = errors.Wrapf(err, \"failed to close response body from %s\", url)\n\t\t}\n\t}()\n\n\tbody, err := ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\treturn \"\", errors.Wrapf(err, \"failed to read body from url %s\", url)\n\t}\n\n\tvar info struct {\n\t\tAccountID string `json:\"accountId\"`\n\t\tError     string `json:\"error\"`\n\t}\n","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/Netflix/chaosmonkey/blob/eaa28fb761c0ebe8644d1333e5d164e9cc3071e9/spinnaker/spinnaker.go#L158-L194","documentation":"Returned by Spinnaker.AccountID when the HTTP GET to the account URL fails at the transport level (DNS failure, refused connection, timeout), meaning no response was received from Spinnaker for the named account lookup.","triggerScenarios":"Thrown at spinnaker/spinnaker.go:176 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Spinnaker endpoint URL and network connectivity","Retry the request — transient transport failures are common","Check TLS/certificate configuration if the endpoint uses HTTPS or x509 client certs"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eaa28fb761c0ebe8644d1333e5d164e9cc3071e9","analyzedAt":"2026-09-03T17:04:39.020Z","contentChangedAt":"2026-09-03T17:04:39.020Z","schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}