{"record":{"id":"a75dd998322144f5","repo":"AlistGo/alist","slug":"tokeninfo-resmessage","errorCode":null,"errorMessage":"tokenInfo.ResMessage","messagePattern":"tokenInfo\\.ResMessage","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/189pc/utils.go","lineNumber":362,"sourceCode":"\t}\n\n\t// 获取Session\n\tvar erron RespErr\n\tvar tokenInfo AppSessionResp\n\t_, err = y.client.R().\n\t\tSetResult(&tokenInfo).SetError(&erron).\n\t\tSetQueryParams(clientSuffix()).\n\t\tSetQueryParam(\"redirectURL\", loginresp.ToUrl).\n\t\tPost(API_URL + \"/getSessionForPC.action\")\n\tif err != nil {\n\t\treturn\n\t}\n\n\tif erron.HasError() {\n\t\treturn &erron\n\t}\n\tif tokenInfo.ResCode != 0 {\n\t\terr = fmt.Errorf(tokenInfo.ResMessage)\n\t\treturn\n\t}\n\ty.tokenInfo = &tokenInfo\n\treturn\n}\n\n/* 初始化登陆需要的参数\n*  如果遇到验证码返回错误\n */\nfunc (y *Cloud189PC) initLoginParam() error {\n\t// 清除cookie\n\tjar, _ := cookiejar.New(nil)\n\ty.client.SetCookieJar(jar)\n\n\tres, err := y.client.R().\n\t\tSetQueryParams(map[string]string{\n\t\t\t\"appId\":      APP_ID,\n\t\t\t\"clientType\": CLIENT_TYPE,","sourceCodeStart":344,"sourceCodeEnd":380,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/189pc/utils.go#L344-L380","documentation":"Error \"tokenInfo.ResMessage\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/189pc/utils.go:362 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-15T17:31:12.345Z"}