{"record":{"id":"92deac244dfce933","repo":"AlistGo/alist","slug":"mode-must-be-d-original-or-d-original-and-tra","errorCode":null,"errorMessage":"mode must be %d (original) or %d (original and transcoded)","messagePattern":"mode must be (.+?) \\(original\\) or (.+?) \\(original and transcoded\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/123_open/other.go","lineNumber":800,"sourceCode":"\nfunc otherTranscodeDelete(d *Open123, ctx context.Context, args model.OtherArgs) (interface{}, error) {\n\tvar req struct {\n\t\tFileID int64 `json:\"file_id\"`\n\t\t// Mode 1 deletes the source only, 2 also deletes the transcoded files.\n\t\tMode int `json:\"mode\"`\n\t}\n\tif err := decodeOtherArgs(args.Data, &req); err != nil {\n\t\treturn nil, err\n\t}\n\tfileID, err := resolveFileID(args, req.FileID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif req.Mode == 0 {\n\t\treq.Mode = int(pan123.DeleteOriginal)\n\t}\n\tif req.Mode != int(pan123.DeleteOriginal) && req.Mode != int(pan123.DeleteOriginalAndTranscoded) {\n\t\treturn nil, fmt.Errorf(\"mode must be %d (original) or %d (original and transcoded)\",\n\t\t\tpan123.DeleteOriginal, pan123.DeleteOriginalAndTranscoded)\n\t}\n\tif err := d.client.Transcode.Delete(ctx, fileID, pan123.DeleteMode(req.Mode)); err != nil {\n\t\treturn nil, err\n\t}\n\treturn okResult{Success: true}, nil\n}\n\nfunc otherTranscodeDownloadOriginal(d *Open123, ctx context.Context, args model.OtherArgs) (interface{}, error) {\n\tvar req fileIDRequest\n\tif err := decodeOtherArgs(args.Data, &req); err != nil {\n\t\treturn nil, err\n\t}\n\tfileID, err := resolveFileID(args, req.FileID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn d.client.Transcode.DownloadOriginal(ctx, fileID)","sourceCodeStart":782,"sourceCodeEnd":818,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/123_open/other.go#L782-L818","documentation":"Error \"mode must be %d (original) or %d (original and transcoded)\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/123_open/other.go:800 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"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"}