{"record":{"id":"5e8b039867ae3fb6","repo":"fish2018/pansou","slug":"s-w-5e8b03","errorCode":null,"errorMessage":"[%s] 获取网盘链接失败: %w","messagePattern":"\\[(.+?)\\] 获取网盘链接失败: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/ting77/ting77.go","lineNumber":99,"sourceCode":"\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 搜索请求失败: %w\", p.Name(), err)\n\t}\n\tdefer resp.Body.Close()\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn nil, fmt.Errorf(\"[%s] 搜索页面返回状态码: %d\", p.Name(), resp.StatusCode)\n\t}\n\tdoc, err := goquery.NewDocumentFromReader(io.LimitReader(resp.Body, maxResponseBytes))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 解析搜索页面失败: %w\", p.Name(), err)\n\t}\n\tentries := parseSearchEntries(doc)\n\tif len(entries) == 0 {\n\t\treturn nil, nil\n\t}\n\n\tresults, resolveErr := p.resolveEntries(ctx, client, entries)\n\tif len(results) == 0 && resolveErr != nil {\n\t\treturn nil, fmt.Errorf(\"[%s] 获取网盘链接失败: %w\", p.Name(), resolveErr)\n\t}\n\treturn plugin.FilterResultsByKeyword(results, keyword), nil\n}\n\ntype searchEntry struct {\n\tID          string\n\tTitle       string\n\tDescription string\n\tSize        string\n\tTags        []string\n\tCloudTypes  []string\n\tDatetime    time.Time\n}\n\nfunc parseSearchEntries(doc *goquery.Document) []searchEntry {\n\tentries := make([]searchEntry, 0, 20)\n\tdoc.Find(\"a.resource-row\").Each(func(_ int, selection *goquery.Selection) {\n\t\thref, _ := selection.Attr(\"href\")","sourceCodeStart":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/ting77/ting77.go#L81-L117","documentation":"Terminal wrapper in ting77 searchImpl: resolveEntries produced zero results and at least one entry resolution failed (resolveErr != nil). Means every candidate link either failed to resolve or was filtered; the last resolution error explains why.","triggerScenarios":"Thrown at plugin/ting77/ting77.go:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect resolveErr (rate limit, invalid redirect, unsupported link)","Retry with lower concurrency to avoid 429s","If all links unsupported, the site's link scheme changed"],"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"}