{"record":{"id":"cca12bed85ff745d","repo":"fish2018/pansou","slug":"http-status-code-d","errorCode":null,"errorMessage":"HTTP status code: %d","messagePattern":"HTTP status code: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/panyq/panyq.go","lineNumber":917,"sourceCode":"\t}\n\t\n\t// 发送请求并支持重试\n\tresp, err := p.doRequestWithRetry(client, req, MaxRetries)\n\tif err != nil {\n\t\t// 网络错误等情况下返回空字符串和错误\n\t\tif DebugLog {\n\t\t\tfmt.Println(\"panyq: network error:\", err)\n\t\t}\n\t\treturn \"\", err\n\t}\n\tdefer resp.Body.Close()\n\t\n\t// 检查状态码\n\tif resp.StatusCode != http.StatusOK {\n\t\tif DebugLog {\n\t\t\tfmt.Println(\"panyq: bad status code:\", resp.StatusCode)\n\t\t}\n\t\treturn \"\", fmt.Errorf(\"HTTP status code: %d\", resp.StatusCode)\n\t}\n\t\n\t// 读取原始响应\n\tbody, err := io.ReadAll(resp.Body)\n\tif err != nil {\n\t\t// 读取错误时返回空字符串和错误\n\t\tif DebugLog {\n\t\t\tfmt.Println(\"panyq: read error:\", err)\n\t\t}\n\t\treturn \"\", err\n\t}\n\t\n\tresponseText := string(body)\n\n\t// 保存到缓存\n\tfinalLinkCacheLock.Lock()\n\tfinalLinkCache[cacheKey] = responseText\n\tfinalLinkCacheLock.Unlock()","sourceCodeStart":899,"sourceCodeEnd":935,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/panyq/panyq.go#L899-L935","documentation":"Status error in panyq's getRawFinalLinkResponse (plugin/panyq/panyq.go:917): the next-action endpoint responded with a non-200 status after retries, so the final-link payload cannot be fetched. Used by validateFinalLinkID and getFinalLink.","triggerScenarios":"Thrown at plugin/panyq/panyq.go:917 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["对 429/503 增加退避重试","检查请求头与 Cookie 是否有效","记录状态码定位拦截原因"],"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"}