{"record":{"id":"ae59f18b0f7c21f5","repo":"AlistGo/alist","slug":"preview-not-available","errorCode":null,"errorMessage":"preview not available","messagePattern":"preview not available","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/doubao_new/driver.go","lineNumber":533,"sourceCode":"}\n\nfunc (d *DoubaoNew) previewLink(ctx context.Context, obj *Object, args model.LinkArgs) (*model.Link, error) {\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\tinfo, err := d.getFileInfo(ctx, obj.ObjToken)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tentry, ok := info.PreviewMeta.Data[\"22\"]\n\tif !ok || entry.Status != 0 {\n\t\treturn nil, errors.New(\"preview not available\")\n\t}\n\n\tsubID := \"\"\n\tpageIndex := 0\n\tif args.HttpReq != nil {\n\t\tquery := args.HttpReq.URL.Query()\n\t\tif v := query.Get(\"sub_id\"); v != \"\" {\n\t\t\tsubID = v\n\t\t} else if v := query.Get(\"page\"); v != \"\" {\n\t\t\tif p, err := strconv.Atoi(v); err == nil && p >= 0 {\n\t\t\t\tpageIndex = p\n\t\t\t}\n\t\t}\n\t}\n\tif subID == \"\" {\n\t\timgExt := \".webp\"\n\t\tpageNums := 0\n\t\tif entry.Extra != \"\" {","sourceCodeStart":515,"sourceCodeEnd":551,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/doubao_new/driver.go#L515-L551","documentation":"Error \"preview not available\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/doubao_new/driver.go:533 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"}