{"record":{"id":"8c5f2562a226243a","repo":"AlistGo/alist","slug":"need-verify-a-target-blank-href-s-click-he-8c5f25","errorCode":null,"errorMessage":"need verify: <a target=\"_blank\" href=\"%s\">Click Here</a>","messagePattern":"need verify: <a target=\"_blank\" href=\"(.+?)\">Click Here</a>","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/thunder/util.go","lineNumber":157,"sourceCode":"\t\tMeta:         metas,\n\t\tRedirectUri:  \"xlaccsdk01://xunlei.com/callback?state=harbor\",\n\t}\n\tvar e ErrResp\n\tvar resp CaptchaTokenResponse\n\t_, err := c.Request(XLUSER_API_URL+\"/shield/captcha/init\", http.MethodPost, func(req *resty.Request) {\n\t\treq.SetError(&e).SetBody(param)\n\t}, &resp)\n\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif e.IsError() {\n\t\treturn &e\n\t}\n\n\tif resp.Url != \"\" {\n\t\treturn fmt.Errorf(`need verify: <a target=\"_blank\" href=\"%s\">Click Here</a>`, resp.Url)\n\t}\n\n\tif resp.CaptchaToken == \"\" {\n\t\treturn fmt.Errorf(\"empty captchaToken\")\n\t}\n\n\tif c.refreshCTokenCk != nil {\n\t\tc.refreshCTokenCk(resp.CaptchaToken)\n\t}\n\tc.SetCaptchaToken(resp.CaptchaToken)\n\treturn nil\n}\n\n// 只有基础信息的请求\nfunc (c *Common) Request(url, method string, callback base.ReqCallback, resp interface{}) ([]byte, error) {\n\treq := c.client.R().SetHeaders(map[string]string{\n\t\t\"user-agent\":       c.UserAgent,\n\t\t\"accept\":           \"application/json;charset=UTF-8\",","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/thunder/util.go#L139-L175","documentation":"Error \"need verify: <a target=\"_blank\" href=\"%s\">Click Here</a>\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/thunder/util.go:157 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-15T22:17:37.221Z"}