{"record":{"id":"5b59215420ffda01","repo":"AlistGo/alist","slug":"req-s-errno-d-refer-to-https-pan-baidu-c","errorCode":null,"errorMessage":"req: [%s] ,errno: %d, refer to https://pan.baidu.com/union/doc/","messagePattern":"req: \\[(.+?)\\] ,errno: (.+?), refer to https://pan\\.baidu\\.com/union/doc/","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/baidu_netdisk/util.go","lineNumber":88,"sourceCode":"\t\t\treturn err\n\t\t}\n\t\tlog.Debugf(\"[baidu_netdisk] req: %s, resp: %s\", furl, res.String())\n\t\terrno := utils.Json.Get(res.Body(), \"errno\").ToInt()\n\t\tif errno != 0 {\n\t\t\tif utils.SliceContains([]int{111, -6}, errno) {\n\t\t\t\tlog.Info(\"[baidu_netdisk] refreshing baidu_netdisk token.\")\n\t\t\t\terr2 := d.refreshToken()\n\t\t\t\tif err2 != nil {\n\t\t\t\t\treturn retry.Unrecoverable(err2)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif 31023 == errno && d.DownloadAPI == \"crack_video\" {\n\t\t\t\tresult = res.Body()\n\t\t\t\treturn nil\n\t\t\t}\n\n\t\t\treturn fmt.Errorf(\"req: [%s] ,errno: %d, refer to https://pan.baidu.com/union/doc/\", furl, errno)\n\t\t}\n\t\tresult = res.Body()\n\t\treturn nil\n\t},\n\t\tretry.LastErrorOnly(true),\n\t\tretry.Attempts(3),\n\t\tretry.Delay(time.Second),\n\t\tretry.DelayType(retry.BackOffDelay))\n\treturn result, err\n}\n\nfunc (d *BaiduNetdisk) get(pathname string, params map[string]string, resp interface{}) ([]byte, error) {\n\treturn d.request(\"https://pan.baidu.com/rest/2.0\"+pathname, http.MethodGet, func(req *resty.Request) {\n\t\treq.SetQueryParams(params)\n\t}, resp)\n}\n\nfunc (d *BaiduNetdisk) postForm(pathname string, params map[string]string, form map[string]string, resp interface{}) ([]byte, error) {","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/baidu_netdisk/util.go#L70-L106","documentation":"Error \"req: [%s] ,errno: %d, refer to https://pan.baidu.com/union/doc/\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/baidu_netdisk/util.go:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}