AlistGo/alist · error
missing object token
Error message
missing object token
What it means
Error "missing object token" thrown in AlistGo/alist.
Source
Thrown at drivers/doubao_new/driver.go:212
}
func (d *DoubaoNew) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {
// TODO copy obj, optional
return nil, errs.NotImplement
}
func (d *DoubaoNew) Remove(ctx context.Context, obj model.Obj) error {
if obj == nil {
return errors.New("nil object")
}
token := obj.GetID()
if token == "" {
if o, ok := obj.(*Object); ok {
token = o.ObjToken
}
}
if token == "" {
return errors.New("missing object token")
}
return d.removeObj(ctx, []string{token})
}
func (d *DoubaoNew) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) (model.Obj, error) {
if file == nil {
return nil, errors.New("nil file")
}
if file.GetSize() <= 0 {
return nil, errors.New("invalid file size")
}
uploadPrep, err := d.prepareUpload(ctx, file.GetName(), file.GetSize(), dstDir.GetID())
if err != nil {
return nil, err
}
if uploadPrep.BlockSize <= 0 {
return nil, errors.New("invalid block size from prepare")View on GitHub (pinned to 843d9dc814)
Solutions
- Provide a valid token in the storage configuration and save it again.
- If the token expired, re-login or refresh it through the provider and update the configuration.
When it happens
Trigger: Thrown at drivers/doubao_new/driver.go:212 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/72f2c12bd23acdf7.
Report an issue: GitHub.