{"record":{"id":"8c518bb8cf71f27b","repo":"fish2018/pansou","slug":"panta-v","errorCode":null,"errorMessage":"请求PanTa搜索页面失败: %v","messagePattern":"请求PanTa搜索页面失败: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/panta/panta.go","lineNumber":263,"sourceCode":"\t// 创建请求\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", searchURL, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"创建请求失败: %v\", err)\n\t}\n\t\n\t// 设置User-Agent和Referer\n\treq.Header.Set(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\")\n\treq.Header.Set(\"Referer\", \"https://www.91panta.cn/index\")\n\treq.Header.Set(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\")\n\treq.Header.Set(\"Accept-Language\", \"zh-CN,zh;q=0.9,en;q=0.8\")\n\treq.Header.Set(\"Connection\", \"keep-alive\")\n\treq.Header.Set(\"Upgrade-Insecure-Requests\", \"1\")\n\treq.Header.Set(\"Cache-Control\", \"max-age=0\")\n\t\n\t// 使用带重试的请求方法发送HTTP请求\n\tresp, err := p.doRequestWithRetry(req, client)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"请求PanTa搜索页面失败: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\t\n\t// 检查状态码\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn nil, fmt.Errorf(\"请求PanTa搜索页面失败，状态码: %d\", resp.StatusCode)\n\t}\n\t\n\t// 使用goquery解析HTML\n\tdoc, err := goquery.NewDocumentFromReader(resp.Body)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"解析HTML失败: %v\", err)\n\t}\n\t\n\t// 解析搜索结果\n\tresults, err := p.parseSearchResults(doc, client)\n\tif err != nil {\n\t\treturn nil, err","sourceCodeStart":245,"sourceCodeEnd":281,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/panta/panta.go#L245-L281","documentation":"Wrapped request failure in PantaAsyncPlugin.doSearch (plugin/panta/panta.go:263): doRequestWithRetry could not obtain a successful response for the PanTa search page after retries — transport error or persistent failure.","triggerScenarios":"Thrown at plugin/panta/panta.go:263 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["确认 91panta.cn 可达","增加重试次数与超时","失败时跳过该插件并提示用户"],"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"}