{"record":{"id":"f9dd6ba2945baa26","repo":"fish2018/pansou","slug":"susu-w-f9dd6b","errorCode":null,"errorMessage":"[susu] 解析按钮详情失败: %w","messagePattern":"\\[susu\\] 解析按钮详情失败: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/susu/susu.go","lineNumber":471,"sourceCode":"\tresp, err := p.doRequestWithRetry(client, req, MaxRetries)\n\tif err != nil {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 获取按钮详情失败: %w\", err)\n\t}\n\tdefer resp.Body.Close()\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 按钮详情请求返回状态码: %d\", resp.StatusCode)\n\t}\n\n\t// 读取响应体\n\trespBody, err := io.ReadAll(io.LimitReader(resp.Body, 2<<20))\n\tif err != nil {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 读取按钮详情失败: %w\", err)\n\t}\n\n\t// 解析响应\n\tvar buttonDetail buttonDetailResponse\n\tif err := json.Unmarshal(respBody, &buttonDetail); err != nil {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 解析按钮详情失败: %w\", err)\n\t}\n\n\t// 如果URL为空\n\tif buttonDetail.Button.URL == \"\" {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 按钮URL为空\")\n\t}\n\n\t// 解析JWT token获取真实链接\n\trealURL, err := p.decodeJWTURL(buttonDetail.Button.URL)\n\tif err != nil {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 解析JWT失败: %w\", err)\n\t}\n\trealURL = strings.TrimSpace(realURL)\n\tparsedURL, err := url.Parse(realURL)\n\tif err != nil || (parsedURL.Scheme != \"http\" && parsedURL.Scheme != \"https\") || parsedURL.Host == \"\" {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 按钮返回无效链接\")\n\t}\n","sourceCodeStart":453,"sourceCodeEnd":489,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/susu/susu.go#L453-L489","documentation":"Wrapped decode error in susu's getButtonDetail (plugin/susu/susu.go:471): the button-detail response downloaded but did not unmarshal into buttonDetailResponse — unexpected payload (challenge page or schema change).","triggerScenarios":"Thrown at plugin/susu/susu.go:471 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Log the raw body prefix to distinguish HTML-block from schema drift","Update buttonDetailResponse fields when the API changes"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"beaa56133755a548ebc51b090b3816e2ae044aa6","analyzedAt":"2026-09-07T00:31:18.025Z","contentChangedAt":"2026-09-07T00:31:18.025Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}