AlistGo/alist · error

copy failed: %s

Error message

copy failed: %s

What it means

Error "copy failed: %s" thrown in AlistGo/alist.

Source

Thrown at drivers/bitqiu/driver.go:368

		form["dirIds"] = srcObj.GetID()
	} else {
		form["fileIds"] = srcObj.GetID()
	}

	for attempt := 0; attempt < 2; attempt++ {
		var resp Response[any]
		if err := d.postForm(ctx, copyResourceURL, form, &resp); err != nil {
			return nil, err
		}
		switch resp.Code {
		case successCode, copySubmittedCode:
			return d.waitForCopiedObject(ctx, srcObj, dstDir)
		case "10401", "10404":
			if err := d.login(ctx); err != nil {
				return nil, err
			}
		default:
			return nil, fmt.Errorf("copy failed: %s", resp.Message)
		}
	}

	return nil, fmt.Errorf("copy failed: retry limit reached")
}

func (d *BitQiu) Remove(ctx context.Context, obj model.Obj) error {
	if d.userID == "" {
		if err := d.login(ctx); err != nil {
			return err
		}
	}

	form := map[string]string{
		"dirIds":      "",
		"fileIds":     "",
		"org_channel": orgChannel,
	}

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/bitqiu/driver.go:368 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/b50d55a8e7f78aa4. Report an issue: GitHub.