AlistGo/alist · error

nil source object

Error message

nil source object

What it means

Error "nil source object" thrown in AlistGo/alist.

Source

Thrown at drivers/doubao_new/driver.go:142

		Object: model.Object{
			ID:       node.NodeToken,
			Path:     parentDir.GetID(),
			Name:     node.Name,
			Size:     parseSize(node.Extra.Size),
			Modified: time.Unix(node.EditTime, 0),
			Ctime:    time.Unix(node.CreateTime, 0),
			IsFolder: true,
		},
		ObjToken: node.ObjToken,
		NodeType: node.NodeType,
		ObjType:  node.Type,
		URL:      node.URL,
	}, nil
}

func (d *DoubaoNew) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {
	if srcObj == nil {
		return nil, errors.New("nil source object")
	}
	if dstDir == nil {
		return nil, errors.New("nil destination dir")
	}
	srcToken := srcObj.GetID()
	if srcToken == "" {
		if obj, ok := srcObj.(*Object); ok {
			srcToken = obj.ObjToken
		}
	}
	if srcToken == "" {
		return nil, errors.New("missing source token")
	}
	if err := d.moveObj(ctx, srcToken, dstDir.GetID()); err != nil {
		return nil, err
	}
	if obj, ok := srcObj.(*Object); ok {
		clone := *obj

View on GitHub (pinned to 843d9dc814)

Solutions

  1. Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation.

When it happens

Trigger: Thrown at drivers/doubao_new/driver.go:142 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/51f5ea029c8b900b. Report an issue: GitHub.