{"record":{"id":"80b4e121d6d7e2dc","repo":"AlistGo/alist","slug":"please-enter-the-sms-code","errorCode":null,"errorMessage":"please enter the SMS code","messagePattern":"please enter the SMS code","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/mopan/driver.go","lineNumber":101,"sourceCode":"\t\t\terr := login()\n\t\t\tif err != nil {\n\t\t\t\td.Status = err.Error()\n\t\t\t\top.MustSaveDriverStorage(d)\n\t\t\t}\n\t\t\treturn err\n\t\t})\n\n\tvar deviceInfo mopan.DeviceInfo\n\tif strings.TrimSpace(d.DeviceInfo) != \"\" && utils.Json.UnmarshalFromString(d.DeviceInfo, &deviceInfo) == nil {\n\t\td.client.SetDeviceInfo(&deviceInfo)\n\t}\n\td.DeviceInfo, _ = utils.Json.MarshalToString(d.client.GetDeviceInfo())\n\n\tif strings.Contains(d.SMSCode, \"send\") {\n\t\tif _, err := d.client.LoginBySms(d.Phone); err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn errors.New(\"please enter the SMS code\")\n\t}\n\treturn login()\n}\n\nfunc (d *MoPan) Drop(ctx context.Context) error {\n\td.client = nil\n\td.userID = \"\"\n\treturn nil\n}\n\nfunc (d *MoPan) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) {\n\tvar files []model.Obj\n\tfor page := 1; ; page++ {\n\t\tdata, err := d.client.QueryFiles(dir.GetID(), page, mopan.WarpParamOption(\n\t\t\tfunc(j mopan.Json) {\n\t\t\t\tj[\"orderBy\"] = d.OrderBy\n\t\t\t\tj[\"descending\"] = d.OrderDirection == \"desc\"\n\t\t\t},","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/mopan/driver.go#L83-L119","documentation":"Error \"please enter the SMS code\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/mopan/driver.go:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Complete the required verification (captcha/SMS/image code) as prompted, then retry the login or 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-15T17:31:12.345Z"}