{"record":{"id":"1caa9e536d588594","repo":"AlistGo/alist","slug":"e-error-message","errorCode":null,"errorMessage":"e.Error.Message","messagePattern":"e\\.Error\\.Message","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/onedrive/util.go","lineNumber":122,"sourceCode":"\t}\n\tif resp != nil {\n\t\treq.SetResult(resp)\n\t}\n\tvar e RespErr\n\treq.SetError(&e)\n\tres, err := req.Execute(method, url)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif e.Error.Code != \"\" {\n\t\tif e.Error.Code == \"InvalidAuthenticationToken\" {\n\t\t\terr = d.refreshToken()\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\treturn d.Request(url, method, callback, resp)\n\t\t}\n\t\treturn nil, errors.New(e.Error.Message)\n\t}\n\treturn res.Body(), nil\n}\n\nfunc (d *Onedrive) getFiles(path string) ([]File, error) {\n\tvar res []File\n\tnextLink := d.GetMetaUrl(false, path) + \"/children?$top=1000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference\"\n\tfor nextLink != \"\" {\n\t\tvar files Files\n\t\t_, err := d.Request(nextLink, http.MethodGet, nil, &files)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tres = append(res, files.Value...)\n\t\tnextLink = files.NextLink\n\t}\n\treturn res, nil\n}","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/onedrive/util.go#L104-L140","documentation":"Error \"e.Error.Message\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/onedrive/util.go:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation."],"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"}