AlistGo/alist · error
failed to check login status according to cookie
Error message
failed to check login status according to cookie
What it means
Init's check-login call returned a non-zero errno (other than 9000's region block), meaning the cookie/session is not authenticated with Terabox; a generic authentication-failure guard.
Solutions
- Update the cookie in the storage configuration with a fresh one from an authenticated browser session.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at drivers/terabox/driver.go:50 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of AlistGo/alist@843d9dc814 (2026-08-15).
Data as JSON: /api/errors/b31d2c7a9d1106f7.
Report an issue: GitHub.
Appendix: source
Thrown at drivers/terabox/driver.go:50
}
func (d *Terabox) GetAddition() driver.Additional {
return &d.Addition
}
func (d *Terabox) Init(ctx context.Context) error {
var resp CheckLoginResp
d.base_url = "https://www.terabox.com"
d.url_domain_prefix = "jp"
_, err := d.get("/api/check/login", nil, &resp)
if err != nil {
return err
}
if resp.Errno != 0 {
if resp.Errno == 9000 {
return fmt.Errorf("terabox is not yet available in this area")
}
return fmt.Errorf("failed to check login status according to cookie")
}
return err
}
func (d *Terabox) Drop(ctx context.Context) error {
return nil
}
func (d *Terabox) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) {
files, err := d.getFiles(dir.GetPath())
if err != nil {
return nil, err
}
return utils.SliceConvert(files, func(src File) (model.Obj, error) {
return fileToObj(src), nil
})
}
View on GitHub (pinned to 843d9dc814)