{"record":{"id":"9e604142cc60bd22","repo":"fish2018/pansou","slug":"pow-w-9e6041","errorCode":null,"errorMessage":"解析PoW验证数据失败: %w","messagePattern":"解析PoW验证数据失败: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/gying/gying.go","lineNumber":1695,"sourceCode":"\tif err != nil {\n\t\treturn err\n\t}\n\n\tif DebugLog {\n\t\tfmt.Printf(\"[Gying] Remote PoW Challenge命中: url=%s powURL=%s\\n\", requestURL, powURL)\n\t}\n\n\tbody, statusCode, _, err := p.requestWithChallengeRetry(scraper, http.MethodGet, powURL, \"\", \"\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\"获取PoW验证数据失败: %w\", err)\n\t}\n\tif statusCode != http.StatusOK {\n\t\treturn fmt.Errorf(\"获取PoW验证数据失败: HTTP %d\", statusCode)\n\t}\n\n\tvar challenge ChallengePageData\n\tif err := json.Unmarshal(body, &challenge); err != nil {\n\t\treturn fmt.Errorf(\"解析PoW验证数据失败: %w\", err)\n\t}\n\tif challenge.N == \"\" || challenge.X == \"\" || challenge.T <= 0 {\n\t\treturn fmt.Errorf(\"PoW验证数据无效\")\n\t}\n\n\ty, err := p.computePowResult(&challenge)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tform := url.Values{}\n\tform.Set(\"y\", y)\n\n\treturn p.submitChallengeVerification(scraper, powURL, form)\n}\n\nfunc (p *GyingPlugin) buildPowURL(requestURL string) (string, error) {\n\tparsedURL, err := url.Parse(requestURL)","sourceCodeStart":1677,"sourceCodeEnd":1713,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/gying/gying.go#L1677-L1713","documentation":"Wrapped decode error in solveRemotePowChallenge (plugin/gying/gying.go:1695): the PoW endpoint returned 200 but the body did not unmarshal into ChallengePageData — usually an HTML interstitial or unexpected payload instead of the JSON challenge.","triggerScenarios":"Thrown at plugin/gying/gying.go:1695 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["记录原始响应体确认实际返回内容","对照站点结构更新 ChallengePageData 字段","在解析前先嗅探是否为 HTML"],"exampleFix":null,"handlingStrategy":"validation","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"}