{"record":{"id":"cce3aaa84f4b6d96","repo":"kubernetes/kops","slug":"failed-to-get-info-for-server-q-w","errorCode":null,"errorMessage":"failed to get info for server %q: %w","messagePattern":"failed to get info for server %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/nodeidentity/hetzner/identify.go","lineNumber":149,"sourceCode":"\n\treturn info, nil\n}\n\n// stringKeyFunc is a string as cache key function\nfunc stringKeyFunc(obj interface{}) (string, error) {\n\tkey := obj.(*nodeidentity.Info).InstanceID\n\treturn key, nil\n}\n\n// getServer queries Hetzner Cloud for the server with the specified ID, returning an error if not found\nfunc (i *nodeIdentifier) getServer(id string) (*hcloud.Server, error) {\n\tserverID, err := strconv.ParseInt(id, 10, 64)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to convert server ID %q to int: %w\", id, err)\n\t}\n\tserver, _, err := i.client.Server.GetByID(context.TODO(), serverID)\n\tif err != nil || server == nil {\n\t\treturn nil, fmt.Errorf(\"failed to get info for server %q: %w\", id, err)\n\t}\n\n\treturn server, nil\n}\n","sourceCodeStart":131,"sourceCodeEnd":154,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/nodeidentity/hetzner/identify.go#L131-L154","documentation":"The Hetzner Cloud API call (Server.GetByID) failed or the server record lacks usable data while resolving the node's backing server. The %w detail carries the API error; authentication, network, or a deleted server are typical causes.","triggerScenarios":"Thrown at pkg/nodeidentity/hetzner/identify.go:149 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped API error (auth token, rate limits, connectivity)","Verify the server ID still exists in the Hetzner project","Delete the stale Node object if the server was deleted"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}