{"record":{"id":"72f2c12bd23acdf7","repo":"AlistGo/alist","slug":"missing-object-token","errorCode":null,"errorMessage":"missing object token","messagePattern":"missing object token","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/doubao_new/driver.go","lineNumber":212,"sourceCode":"}\n\nfunc (d *DoubaoNew) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {\n\t// TODO copy obj, optional\n\treturn nil, errs.NotImplement\n}\n\nfunc (d *DoubaoNew) Remove(ctx context.Context, obj model.Obj) error {\n\tif obj == nil {\n\t\treturn errors.New(\"nil object\")\n\t}\n\ttoken := obj.GetID()\n\tif token == \"\" {\n\t\tif o, ok := obj.(*Object); ok {\n\t\t\ttoken = o.ObjToken\n\t\t}\n\t}\n\tif token == \"\" {\n\t\treturn errors.New(\"missing object token\")\n\t}\n\treturn d.removeObj(ctx, []string{token})\n}\n\nfunc (d *DoubaoNew) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) (model.Obj, error) {\n\tif file == nil {\n\t\treturn nil, errors.New(\"nil file\")\n\t}\n\tif file.GetSize() <= 0 {\n\t\treturn nil, errors.New(\"invalid file size\")\n\t}\n\n\tuploadPrep, err := d.prepareUpload(ctx, file.GetName(), file.GetSize(), dstDir.GetID())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif uploadPrep.BlockSize <= 0 {\n\t\treturn nil, errors.New(\"invalid block size from prepare\")","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/doubao_new/driver.go#L194-L230","documentation":"Error \"missing object token\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/doubao_new/driver.go:212 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}