{"record":{"id":"daa504d606d90245","repo":"fish2018/pansou","slug":"pow-w","errorCode":null,"errorMessage":"获取PoW验证数据失败: %w","messagePattern":"获取PoW验证数据失败: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/gying/gying.go","lineNumber":1687,"sourceCode":"\t\treturn p.solvePowChallenge(scraper, requestURL, &challenge)\n\t}\n\n\treturn p.solveLegacyHashChallenge(scraper, requestURL, &challenge)\n}\n\nfunc (p *GyingPlugin) solveRemotePowChallenge(scraper *cloudscraper.Scraper, requestURL string) error {\n\tpowURL, err := p.buildPowURL(requestURL)\n\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","sourceCodeStart":1669,"sourceCodeEnd":1705,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/gying/gying.go#L1669-L1705","documentation":"Wrapped request error in GyingPlugin.solveRemotePowChallenge (plugin/gying/gying.go:1687): the GET to the /res/pow challenge endpoint failed at the transport level (requestWithChallengeRetry returned an error), so the proof-of-work data could not be retrieved.","triggerScenarios":"Thrown at plugin/gying/gying.go:1687 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["确认 gying 站点 /res/pow 端点仍存在","对挑战请求增加退避重试","开启 DebugLog 观察具体底层错误"],"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"}