{"record":{"id":"a6d6638c6ba1c46d","repo":"AlistGo/alist","slug":"missing-obj-token","errorCode":null,"errorMessage":"missing obj_token","messagePattern":"missing obj_token","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/doubao_new/driver.go","lineNumber":98,"sourceCode":"\tobj, ok := file.(*Object)\n\tif !ok {\n\t\treturn nil, errors.New(\"unsupported object type\")\n\t}\n\tif obj.IsFolder {\n\t\treturn nil, errs.LinkIsDir\n\t}\n\tif args.Type == \"preview\" || args.Type == \"thumb\" {\n\t\tif link, err := d.previewLink(ctx, obj, args); err == nil {\n\t\t\treturn link, nil\n\t\t}\n\t}\n\tauth := d.resolveAuthorization()\n\tdpop := d.resolveDpop()\n\tif auth == \"\" || dpop == \"\" {\n\t\treturn nil, errors.New(\"missing authorization or dpop\")\n\t}\n\tif obj.ObjToken == \"\" {\n\t\treturn nil, errors.New(\"missing obj_token\")\n\t}\n\n\tquery := url.Values{}\n\tquery.Set(\"authorization\", auth)\n\tquery.Set(\"dpop\", dpop)\n\n\tdownloadURL := DownloadBaseURL + \"/space/api/box/stream/download/all/\" + obj.ObjToken + \"/?\" + query.Encode()\n\n\theaders := http.Header{\n\t\t\"Referer\":    []string{\"https://www.doubao.com/\"},\n\t\t\"User-Agent\": []string{base.UserAgent},\n\t}\n\n\treturn &model.Link{\n\t\tURL:    downloadURL,\n\t\tHeader: headers,\n\t}, nil\n}","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/doubao_new/driver.go#L80-L116","documentation":"Error \"missing obj_token\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/doubao_new/driver.go:98 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-15T22:17:37.221Z"}