{"record":{"id":"2d25730fe19268f8","repo":"AlistGo/alist","slug":"query-offline-download-task-d-failed-w","errorCode":null,"errorMessage":"query offline download task %d failed: %w","messagePattern":"query offline download task (.+?) failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/123_open/offline.go","lineNumber":49,"sourceCode":"\ttaskID, err := d.client.Offline.Download(ctx, &pan123.OfflineDownloadRequest{\n\t\tURL:      url,\n\t\tFileName: fileName,\n\t\tDirID:    dirID,\n\t})\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"add offline download task failed: %w\", err)\n\t}\n\treturn taskID, nil\n}\n\n// OfflineProcess reports the progress and state of an offline download task.\nfunc (d *Open123) OfflineProcess(ctx context.Context, taskID int64) (*pan123.OfflineProcessResult, error) {\n\tif err := d.ensureToken(ctx); err != nil {\n\t\treturn nil, err\n\t}\n\tres, err := d.client.Offline.Process(ctx, taskID)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"query offline download task %d failed: %w\", taskID, err)\n\t}\n\treturn res, nil\n}\n","sourceCodeStart":31,"sourceCodeEnd":53,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/123_open/offline.go#L31-L53","documentation":"Error \"query offline download task %d failed: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/123_open/offline.go:49 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-15T17:31:12.345Z"}