{"record":{"id":"b31d2c7a9d1106f7","repo":"AlistGo/alist","slug":"failed-to-check-login-status-according-to-cookie","errorCode":null,"errorMessage":"failed to check login status according to cookie","messagePattern":"failed to check login status according to cookie","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/terabox/driver.go","lineNumber":50,"sourceCode":"}\n\nfunc (d *Terabox) GetAddition() driver.Additional {\n\treturn &d.Addition\n}\n\nfunc (d *Terabox) Init(ctx context.Context) error {\n\tvar resp CheckLoginResp\n\td.base_url = \"https://www.terabox.com\"\n\td.url_domain_prefix = \"jp\"\n\t_, err := d.get(\"/api/check/login\", nil, &resp)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif resp.Errno != 0 {\n\t\tif resp.Errno == 9000 {\n\t\t\treturn fmt.Errorf(\"terabox is not yet available in this area\")\n\t\t}\n\t\treturn fmt.Errorf(\"failed to check login status according to cookie\")\n\t}\n\treturn err\n}\n\nfunc (d *Terabox) Drop(ctx context.Context) error {\n\treturn nil\n}\n\nfunc (d *Terabox) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) {\n\tfiles, err := d.getFiles(dir.GetPath())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn utils.SliceConvert(files, func(src File) (model.Obj, error) {\n\t\treturn fileToObj(src), nil\n\t})\n}\n","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/terabox/driver.go#L32-L68","documentation":"Error \"failed to check login status according to cookie\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/terabox/driver.go:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update the cookie in the storage configuration with a fresh one from an authenticated browser session."],"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"}