{"record":{"id":"7ebe37e996135aa5","repo":"AlistGo/alist","slug":"missing-authorization-or-dpop","errorCode":null,"errorMessage":"missing authorization or dpop","messagePattern":"missing authorization or dpop","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/doubao_new/driver.go","lineNumber":95,"sourceCode":"}\n\nfunc (d *DoubaoNew) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) {\n\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,","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/doubao_new/driver.go#L77-L113","documentation":"Error \"missing authorization or dpop\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/doubao_new/driver.go:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the referenced file/path/ID exists and is correct, then retry the operation."],"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"}