wtfutil/wtf · error

%s

Error message

%s

What it means

Raised in rollbarItemRequest when the Rollbar API returns a non-2xx status: the error is just the HTTP status string (e.g. '403 Forbidden'), with no body. Fires for invalid access tokens, wrong project, rate limits, or server errors when fetching active items.

Source

Thrown at modules/rollbar/client.go:56

	params.Add("assigned_user", assignedToName)
	if activeOnly {
		params.Add("status", "active")
	}

	requestURL := rollbarAPIURL.ResolveReference(&url.URL{RawQuery: params.Encode()})
	req, _ := http.NewRequest("GET", requestURL.String(), http.NoBody)
	req.Header.Add("Accept", "application/json")
	req.Header.Add("Content-Type", "application/json")

	httpClient := &http.Client{}
	resp, err := httpClient.Do(req)
	if err != nil {
		return nil, err
	}
	defer func() { _ = resp.Body.Close() }()

	if resp.StatusCode < 200 || resp.StatusCode > 299 {
		return nil, fmt.Errorf("%s", resp.Status)
	}

	return resp, nil
}

View on GitHub (pinned to bb838c1ccb)

Solutions

  1. Verify the Rollbar access token (project read scope) is valid
  2. Check the configured Rollbar project and endpoint URL
  3. Inspect resp.Status in the message for the exact HTTP code
  4. Back off on 429 rate-limit responses and retry later
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at modules/rollbar/client.go:56 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wtfutil/wtf@bb838c1ccb (2026-09-03). Data as JSON: /api/errors/c6671afa9acd9538. Report an issue: GitHub.