{"record":{"id":"2f938ebb05d0d975","repo":"AlistGo/alist","slug":"can-t-convert-obj-to-url-2f938e","errorCode":null,"errorMessage":"can't convert obj to URL","messagePattern":"can't convert obj to URL","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/doubao_share/driver.go","lineNumber":118,"sourceCode":"\t\t\t\treturn nil, err\n\t\t\t}\n\n\t\t\tdownloadUrl = r.Data.FileUrls[0].MainURL\n\t\t}\n\n\t\t// 生成标准的Content-Disposition\n\t\tcontentDisposition := generateContentDisposition(u.Name)\n\n\t\treturn &model.Link{\n\t\t\tURL: downloadUrl,\n\t\t\tHeader: http.Header{\n\t\t\t\t\"User-Agent\":          []string{UserAgent},\n\t\t\t\t\"Content-Disposition\": []string{contentDisposition},\n\t\t\t},\n\t\t}, nil\n\t}\n\n\treturn nil, errors.New(\"can't convert obj to URL\")\n}\n\nfunc (d *DoubaoShare) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) {\n\t// TODO create folder, optional\n\treturn nil, errs.NotImplement\n}\n\nfunc (d *DoubaoShare) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {\n\t// TODO move obj, optional\n\treturn nil, errs.NotImplement\n}\n\nfunc (d *DoubaoShare) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) {\n\t// TODO rename obj, optional\n\treturn nil, errs.NotImplement\n}\n\nfunc (d *DoubaoShare) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/doubao_share/driver.go#L100-L136","documentation":"Error \"can't convert obj to URL\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/doubao_share/driver.go:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and 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"}