{"record":{"id":"cc7033813bb16084","repo":"AlistGo/alist","slug":"status-must-be-d-enabled-or-d-disabled","errorCode":null,"errorMessage":"status must be %d (enabled) or %d (disabled)","messagePattern":"status must be (.+?) \\(enabled\\) or (.+?) \\(disabled\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/123_open/other.go","lineNumber":575,"sourceCode":"\t}\n\tif err := decodeOtherArgs(args.Data, &req); err != nil {\n\t\treturn nil, err\n\t}\n\tif err := d.client.Link.UpdateIPBlacklist(ctx, req.IPList); err != nil {\n\t\treturn nil, err\n\t}\n\treturn okResult{Success: true}, nil\n}\n\nfunc otherDirectLinkIPBlacklistSwitch(d *Open123, ctx context.Context, args model.OtherArgs) (interface{}, error) {\n\tvar req struct {\n\t\tStatus int `json:\"status\"`\n\t}\n\tif err := decodeOtherArgs(args.Data, &req); err != nil {\n\t\treturn nil, err\n\t}\n\tif req.Status != int(pan123.IPBlacklistEnabled) && req.Status != int(pan123.IPBlacklistDisabled) {\n\t\treturn nil, fmt.Errorf(\"status must be %d (enabled) or %d (disabled)\",\n\t\t\tpan123.IPBlacklistEnabled, pan123.IPBlacklistDisabled)\n\t}\n\tdone, err := d.client.Link.SwitchIPBlacklist(ctx, pan123.IPBlacklistStatus(req.Status))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn okResult{Success: done}, nil\n}\n\n// ---------------------------------------------------------------- offline download\n\n// offlineDownloadArgs is shared by the cloud disk and the image hosting task.\ntype offlineDownloadArgs struct {\n\tURL         string `json:\"url\"`\n\tFileName    string `json:\"file_name\"`\n\tDirID       int64  `json:\"dir_id\"`\n\tCallBackURL string `json:\"call_back_url\"`\n}","sourceCodeStart":557,"sourceCodeEnd":593,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/123_open/other.go#L557-L593","documentation":"Error \"status must be %d (enabled) or %d (disabled)\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/123_open/other.go:575 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"}