{"record":{"id":"a0b0f059e6b2a70d","repo":"fish2018/pansou","slug":"s-w-a0b0f0","errorCode":null,"errorMessage":"[%s] 请求详情失败: %w","messagePattern":"\\[(.+?)\\] 请求详情失败: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/yulinshufa/yulinshufa.go","lineNumber":320,"sourceCode":"\tif cached, ok := p.loadFromCache(cacheKey); ok {\n\t\tp.debugf(\"详情缓存命中: %s\", cacheKey)\n\t\treturn &cached, nil\n\t}\n\n\tctx, cancel := context.WithTimeout(context.Background(), detailTimeout)\n\tdefer cancel()\n\n\treq, err := http.NewRequestWithContext(ctx, http.MethodGet, item.DetailURL, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 创建详情请求失败: %w\", p.Name(), err)\n\t}\n\tp.decorateCommonHeaders(req)\n\treq.Header.Set(\"Referer\", baseURL+\"/\")\n\tp.debugf(\"请求详情: %s\", item.DetailURL)\n\n\tresp, err := p.doRequestWithRetry(p.detailHTTPClient, req, requestMaxRetries)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 请求详情失败: %w\", p.Name(), err)\n\t}\n\tdefer resp.Body.Close()\n\n\tdoc, err := p.buildGBKDocument(resp.Body)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 解析详情失败: %w\", p.Name(), err)\n\t}\n\n\tresult := p.parseDetailDocument(doc, item)\n\tif result == nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 详情解析为空\", p.Name())\n\t}\n\n\tp.storeInCache(cacheKey, *result)\n\treturn result, nil\n}\n\n// parseDetailDocument 将详情页转为 SearchResult","sourceCodeStart":302,"sourceCodeEnd":338,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/yulinshufa/yulinshufa.go#L302-L338","documentation":"Wrapper in yulinshufa getDetailResult: doRequestWithRetry on the detail HTTP client exhausted requestMaxRetries for the detail page. Cause is the last transport or non-200 failure; cache lookup already missed before this.","triggerScenarios":"Thrown at plugin/yulinshufa/yulinshufa.go:320 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped cause","Retry the detail fetch later","Drop the item if the detail page is persistently unreachable"],"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"}