wtfutil/wtf · error

error fetching %s steam status: %v, status: %d

Error message

error fetching %s steam status: %v, status: %d

What it means

Raised in the Steam client's fetch when the HTTP GET for a player's status fails or returns a non-200 status: the error includes the steam ID, the transport error (which may be nil when only the status check failed), and the HTTP status code. Typical causes are an invalid Steam API key, unknown/vanity steam ID, or network failure.

Source

Thrown at modules/steam/client.go:67

	resp, err := s.fetch(steamID)
	if err != nil {
		return nil, err
	}

	var response SteamResponse

	if err := json.Unmarshal(resp, &response); err != nil {
		return nil, err
	}

	return &response.Response.Players[0], nil
}

func (s *Steam) fetch(id string) ([]byte, error) {
	resp, err := http.Get(s.baseUrl + id)

	if err != nil || resp.StatusCode != 200 {
		return nil, fmt.Errorf("error fetching %s steam status: %v, status: %d", id, err, resp.StatusCode)
	}

	defer resp.Body.Close()
	return io.ReadAll(resp.Body)
}

View on GitHub (pinned to bb838c1ccb)

Solutions

  1. Verify the Steam Web API key configured for the widget is valid
  2. Check the steam ID format (64-bit ID expected) is correct
  3. Confirm network access to api.steampowered.com
  4. If err is nil in the message, focus on the reported HTTP status code
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at modules/steam/client.go:67 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/1bd0ae7d720c01da. Report an issue: GitHub.