AlistGo/alist · error

query offline download task %d failed: %w

Error message

query offline download task %d failed: %w

What it means

Error "query offline download task %d failed: %w" thrown in AlistGo/alist.

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)

Solutions

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

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.