AlistGo/alist · error

query offline download task

Error message

query offline download task %d failed: %w

What it means

Wraps the error from pan123 Offline.Process in Open123.OfflineProcess: polling the state of an offline download task failed on the 123 open platform (unknown task ID, expired task, or API error), so no progress information is available.

Solutions

  1. Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at drivers/123_open/offline.go:49 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of AlistGo/alist@843d9dc814 (2026-08-15). Data as JSON: /api/errors/2d25730fe19268f8. Report an issue: GitHub.

Appendix: source

Thrown at drivers/123_open/offline.go:49

	taskID, err := d.client.Offline.Download(ctx, &pan123.OfflineDownloadRequest{
		URL:      url,
		FileName: fileName,
		DirID:    dirID,
	})
	if err != nil {
		return 0, fmt.Errorf("add offline download task failed: %w", err)
	}
	return taskID, nil
}

// OfflineProcess reports the progress and state of an offline download task.
func (d *Open123) OfflineProcess(ctx context.Context, taskID int64) (*pan123.OfflineProcessResult, error) {
	if err := d.ensureToken(ctx); err != nil {
		return nil, err
	}
	res, err := d.client.Offline.Process(ctx, taskID)
	if err != nil {
		return nil, fmt.Errorf("query offline download task %d failed: %w", taskID, err)
	}
	return res, nil
}

View on GitHub (pinned to 843d9dc814)