{"record":{"id":"b003116a978be8bb","repo":"fish2018/pansou","slug":"search2","errorCode":null,"errorMessage":"无法从首页提取search2参数","messagePattern":"无法从首页提取search2参数","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/u3c3/u3c3.go","lineNumber":183,"sourceCode":"\t\t\tif i < MaxRetries-1 {\n\t\t\t\ttime.Sleep(RetryDelay)\n\t\t\t}\n\t\t}\n\t\tif lastErr != nil || resp == nil || resp.StatusCode != 200 {\n\t\t\tcontinue\n\t\t}\n\t\tbody, readErr := io.ReadAll(resp.Body)\n\t\tresp.Body.Close()\n\t\tif readErr != nil {\n\t\t\tlastErr = readErr\n\t\t\tcontinue\n\t\t}\n\t\tsearch2 = p.extractSearch2FromHTML(string(body))\n\t\tif search2 != \"\" {\n\t\t\tp.setActiveURL(baseURL)\n\t\t\tbreak\n\t\t}\n\t\tlastErr = fmt.Errorf(\"无法从首页提取search2参数\")\n\t}\n\tif search2 == \"\" {\n\t\tif lastErr == nil {\n\t\t\tlastErr = fmt.Errorf(\"u3c3 所有域名均不可用\")\n\t\t}\n\t\treturn \"\", lastErr\n\t}\n\n\t// 缓存参数\n\tp.search2 = search2\n\tp.lastSync = time.Now()\n\n\tif p.debugMode {\n\t\tlog.Printf(\"[U3C3] 获取到search2参数: %s\", search2)\n\t}\n\n\treturn search2, nil\n}","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/u3c3/u3c3.go#L165-L201","documentation":"Extraction sentinel in u3c3 getSearch2Parameter: a mirror's homepage was fetched (HTTP 200, body read fine) but extractSearch2FromHTML found no search2 value in the HTML. Set as lastErr and the loop moves to the next domain; fatal only when all domains fail. Indicates the page template or obfuscation changed, or a challenge page was served.","triggerScenarios":"Thrown at plugin/u3c3/u3c3.go:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update the extraction regex/logic for the new homepage structure","Verify the served page isn't a captcha/block page","Add new mirror domains to try"],"exampleFix":null,"handlingStrategy":"fallback","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"}