AlistGo/alist · error
username or password is empty
Error message
username or password is empty
What it means
Error "username or password is empty" thrown in AlistGo/alist.
Source
Thrown at drivers/pikpak/util.go:188
return rawURL
}
for _, base := range pikPakDomains {
if u.Host == base {
u.Host = domain
return u.String()
}
if strings.HasSuffix(u.Host, "."+base) {
u.Host = strings.TrimSuffix(u.Host, base) + domain
return u.String()
}
}
return rawURL
}
func (d *PikPak) login() error {
// 检查用户名和密码是否为空
if d.Addition.Username == "" || d.Addition.Password == "" {
return errors.New("username or password is empty")
}
url := d.userURL("/v1/auth/signin")
// 使用 用户填写的 CaptchaToken —————— (验证后的captcha_token)
if d.GetCaptchaToken() == "" {
if err := d.RefreshCaptchaTokenInLogin(GetAction(http.MethodPost, url), d.Username); err != nil {
return err
}
}
var e ErrResp
res, err := base.RestyClient.SetRetryCount(1).R().SetError(&e).SetBody(base.Json{
"captcha_token": d.GetCaptchaToken(),
"client_id": d.ClientID,
"client_secret": d.ClientSecret,
"username": d.Username,
"password": d.Password,
}).SetQueryParam("client_id", d.ClientID).Post(url)View on GitHub (pinned to 843d9dc814)
Solutions
- Ensure the referenced value is configured and non-empty, then retry the operation.
When it happens
Trigger: Thrown at drivers/pikpak/util.go:188 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/85979f74c664452b.
Report an issue: GitHub.