{"record":{"id":"dcf361b32594b687","repo":"fish2018/pansou","slug":"susu-d-dcf361","errorCode":null,"errorMessage":"[susu] 按钮详情请求返回状态码: %d","messagePattern":"\\[susu\\] 按钮详情请求返回状态码: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/susu/susu.go","lineNumber":459,"sourceCode":"\t\t\"guest\":   {\"\"},\n\t}\n\tctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)\n\tdefer cancel()\n\n\treq, err := http.NewRequestWithContext(ctx, http.MethodPost, ButtonDetailURL, strings.NewReader(form.Encode()))\n\tif err != nil {\n\t\treturn model.Link{}, fmt.Errorf(\"[susu] 创建按钮详情请求失败: %w\", err)\n\t}\n\tsetAPIHeaders(req, fmt.Sprintf(\"%s/download?post_id=%s&index=%d&i=%d\", BaseURL, postID, index, i))\n\n\t// 发送请求（带重试）\n\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}","sourceCodeStart":441,"sourceCodeEnd":477,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/susu/susu.go#L441-L477","documentation":"Status error in susu's getButtonDetail (plugin/susu/susu.go:459): the button-detail API returned a non-200 status after retries, so the JWT/URL payload for this link cannot be obtained. Search-level data was fine; this per-link fetch was rejected.","triggerScenarios":"Thrown at plugin/susu/susu.go:459 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Back off and rate-limit button-detail requests","Check 403 vs 429 to distinguish blocking from rate limiting","Verify the form fields (post_id/index/i) are still valid"],"exampleFix":null,"handlingStrategy":"retry","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"}