{"record":{"id":"3c79d6fdc92871e9","repo":"AlistGo/alist","slug":"s-s-3c79d6","errorCode":null,"errorMessage":"%s : %s","messagePattern":"%s : %s","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/baidu_netdisk/util.go","lineNumber":47,"sourceCode":"\t}\n\treturn err\n}\n\nfunc (d *BaiduNetdisk) _refreshToken() error {\n\tu := \"https://openapi.baidu.com/oauth/2.0/token\"\n\tvar resp base.TokenResp\n\tvar e TokenErrResp\n\t_, err := base.RestyClient.R().SetResult(&resp).SetError(&e).SetQueryParams(map[string]string{\n\t\t\"grant_type\":    \"refresh_token\",\n\t\t\"refresh_token\": d.RefreshToken,\n\t\t\"client_id\":     d.ClientID,\n\t\t\"client_secret\": d.ClientSecret,\n\t}).Get(u)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif e.Error != \"\" {\n\t\treturn fmt.Errorf(\"%s : %s\", e.Error, e.ErrorDescription)\n\t}\n\tif resp.RefreshToken == \"\" {\n\t\treturn errs.EmptyToken\n\t}\n\td.AccessToken, d.RefreshToken = resp.AccessToken, resp.RefreshToken\n\top.MustSaveDriverStorage(d)\n\treturn nil\n}\n\nfunc (d *BaiduNetdisk) request(furl string, method string, callback base.ReqCallback, resp interface{}) ([]byte, error) {\n\tvar result []byte\n\terr := retry.Do(func() error {\n\t\treq := base.RestyClient.R()\n\t\treq.SetQueryParam(\"access_token\", d.AccessToken)\n\t\tif callback != nil {\n\t\t\tcallback(req)\n\t\t}\n\t\tif resp != nil {","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/baidu_netdisk/util.go#L29-L65","documentation":"Error \"%s : %s\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/baidu_netdisk/util.go:47 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"}