AlistGo/alist · error

copy task timed out waiting for completion

Error message

copy task timed out waiting for completion

What it means

waitForCopiedObject polled until its deadline without finding the copied object and without a failure record, meaning the asynchronous copy never completed in the expected window; the last listing error (if any) is returned first.

Solutions

  1. Retry the operation; if it persists, check network connectivity and the provider's service status, or increase the timeout.
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at drivers/bitqiu/driver.go:659 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


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

Appendix: source

Thrown at drivers/bitqiu/driver.go:659

		}

		if err := d.checkCopyFailure(ctx); err != nil {
			return nil, err
		}

		obj, err := d.findObjectInDir(ctx, dstDir, expectedName, expectedIsDir)
		if err != nil {
			lastListErr = err
			continue
		}
		if obj != nil {
			return obj, nil
		}
	}
	if lastListErr != nil {
		return nil, lastListErr
	}
	return nil, fmt.Errorf("copy task timed out waiting for completion")
}

func (d *BitQiu) checkCopyFailure(ctx context.Context) error {
	form := map[string]string{
		"org_channel": orgChannel,
	}
	for attempt := 0; attempt < 2; attempt++ {
		var resp Response[AsyncManagerData]
		if err := d.postForm(ctx, copyManagerURL, form, &resp); err != nil {
			return err
		}
		switch resp.Code {
		case successCode:
			if len(resp.Data.FailTasks) > 0 {
				return fmt.Errorf("copy failed: %s", resp.Data.FailTasks[0].ErrorMessage())
			}
			return nil
		case "10401", "10404":

View on GitHub (pinned to 843d9dc814)