Netflix/chaosmonkey · error

could not retrieve account info for %s from spinnaker url %s

Error message

could not retrieve account info for %s from spinnaker url %s

What it means

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.

Source

Thrown at spinnaker/spinnaker.go:176

	} else if x509Cert != "" {
		client, err = getClientX509(x509Cert, x509Key)
		if err != nil {
			return Spinnaker{}, err
		}
	} else {
		client = new(http.Client)
	}

	return Spinnaker{endpoint: endpoint, client: client, user: user}, nil
}

// AccountID returns numerical ID associated with an AWS account
func (s Spinnaker) AccountID(name string) (id string, err error) {
	url := s.accountURL(name)

	resp, err := s.client.Get(url)
	if err != nil {
		return "", errors.Wrapf(err, "could not retrieve account info for %s from spinnaker url %s", name, url)
	}

	defer func() {
		if cerr := resp.Body.Close(); cerr != nil && err == nil {
			err = errors.Wrapf(err, "failed to close response body from %s", url)
		}
	}()

	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return "", errors.Wrapf(err, "failed to read body from url %s", url)
	}

	var info struct {
		AccountID string `json:"accountId"`
		Error     string `json:"error"`
	}

View on GitHub (pinned to eaa28fb761)

Solutions

  1. Verify the Spinnaker endpoint URL and network connectivity
  2. Retry the request — transient transport failures are common
  3. Check TLS/certificate configuration if the endpoint uses HTTPS or x509 client certs
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at spinnaker/spinnaker.go:176 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Netflix/chaosmonkey@eaa28fb761 (2026-09-03). Data as JSON: /api/errors/2825eac19cbaa30f. Report an issue: GitHub.