{"record":{"id":"525e32c57189e92b","repo":"AlistGo/alist","slug":"failed-to-get-offline-list-w-525e32","errorCode":null,"errorMessage":"failed to get offline list: %w","messagePattern":"failed to get offline list: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/thunder/driver.go","lineNumber":644,"sourceCode":"\n/*\n获取离线下载任务列表\n*/\nfunc (xc *XunLeiCommon) OfflineList(ctx context.Context, nextPageToken string) ([]OfflineTask, error) {\n\tres := make([]OfflineTask, 0)\n\n\tvar resp OfflineListResp\n\t_, err := xc.Request(TASK_API_URL, http.MethodGet, func(req *resty.Request) {\n\t\treq.SetContext(ctx).\n\t\t\tSetQueryParams(map[string]string{\n\t\t\t\t\"type\":       \"offline\",\n\t\t\t\t\"limit\":      \"10000\",\n\t\t\t\t\"page_token\": nextPageToken,\n\t\t\t})\n\t}, &resp)\n\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to get offline list: %w\", err)\n\t}\n\tres = append(res, resp.Tasks...)\n\treturn res, nil\n}\n\nfunc (xc *XunLeiCommon) DeleteOfflineTasks(ctx context.Context, taskIDs []string, deleteFiles bool) error {\n\t_, err := xc.Request(TASK_API_URL, http.MethodDelete, func(req *resty.Request) {\n\t\treq.SetContext(ctx).\n\t\t\tSetQueryParams(map[string]string{\n\t\t\t\t\"task_ids\":     strings.Join(taskIDs, \",\"),\n\t\t\t\t\"delete_files\": strconv.FormatBool(deleteFiles),\n\t\t\t})\n\t}, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to delete tasks %v: %w\", taskIDs, err)\n\t}\n\treturn nil\n}","sourceCodeStart":626,"sourceCodeEnd":662,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/thunder/driver.go#L626-L662","documentation":"Error \"failed to get offline list: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/thunder/driver.go:644 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"}