AlistGo/alist · error

login failed: %s

Error message

login failed: %s

What it means

Error "login failed: %s" thrown in AlistGo/alist.

Source

Thrown at drivers/bitqiu/driver.go:584

func (d *BitQiu) login(ctx context.Context) error {
	if d.client == nil {
		return fmt.Errorf("client not initialized")
	}

	form := map[string]string{
		"passport":    d.Username,
		"password":    utils.GetMD5EncodeStr(d.Password),
		"remember":    "0",
		"captcha":     "",
		"org_channel": orgChannel,
	}
	var resp Response[LoginData]
	if err := d.postForm(ctx, loginURL, form, &resp); err != nil {
		return err
	}
	if resp.Code != successCode {
		return fmt.Errorf("login failed: %s", resp.Message)
	}
	d.userID = strconv.FormatInt(resp.Data.UserID, 10)
	return d.ensureRootFolderID(ctx)
}

func (d *BitQiu) ensureRootFolderID(ctx context.Context) error {
	rootID := d.Addition.GetRootId()
	if rootID != "" && rootID != "0" {
		return nil
	}

	form := map[string]string{
		"org_channel": orgChannel,
	}
	var resp Response[UserInfoData]
	if err := d.postForm(ctx, userInfoURL, form, &resp); err != nil {
		return err
	}

View on GitHub (pinned to 843d9dc814)

Solutions

  1. Check the account credentials in the storage configuration and correct them, then save and retry.

When it happens

Trigger: Thrown at drivers/bitqiu/driver.go:584 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/f79a4a02eda0ed37. Report an issue: GitHub.