{"record":{"id":"1bd0ae7d720c01da","repo":"wtfutil/wtf","slug":"error-fetching-s-steam-status-v-status-d","errorCode":null,"errorMessage":"error fetching %s steam status: %v, status: %d","messagePattern":"error fetching (.+?) steam status: (.+?), status: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/steam/client.go","lineNumber":67,"sourceCode":"\tresp, err := s.fetch(steamID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar response SteamResponse\n\n\tif err := json.Unmarshal(resp, &response); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &response.Response.Players[0], nil\n}\n\nfunc (s *Steam) fetch(id string) ([]byte, error) {\n\tresp, err := http.Get(s.baseUrl + id)\n\n\tif err != nil || resp.StatusCode != 200 {\n\t\treturn nil, fmt.Errorf(\"error fetching %s steam status: %v, status: %d\", id, err, resp.StatusCode)\n\t}\n\n\tdefer resp.Body.Close()\n\treturn io.ReadAll(resp.Body)\n}\n","sourceCodeStart":49,"sourceCodeEnd":73,"githubUrl":"https://github.com/wtfutil/wtf/blob/bb838c1ccb0f0f3223690df44afdec663d622881/modules/steam/client.go#L49-L73","documentation":"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.","triggerScenarios":"Thrown at modules/steam/client.go:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Steam Web API key configured for the widget is valid","Check the steam ID format (64-bit ID expected) is correct","Confirm network access to api.steampowered.com","If err is nil in the message, focus on the reported HTTP status code"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bb838c1ccb0f0f3223690df44afdec663d622881","analyzedAt":"2026-09-03T17:02:45.030Z","contentChangedAt":"2026-09-03T17:02:45.030Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}