AlistGo/alist · error

status must be %d (enabled) or %d (disabled)

Error message

status must be %d (enabled) or %d (disabled)

What it means

Error "status must be %d (enabled) or %d (disabled)" thrown in AlistGo/alist.

Source

Thrown at drivers/123_open/other.go:575

	}
	if err := decodeOtherArgs(args.Data, &req); err != nil {
		return nil, err
	}
	if err := d.client.Link.UpdateIPBlacklist(ctx, req.IPList); err != nil {
		return nil, err
	}
	return okResult{Success: true}, nil
}

func otherDirectLinkIPBlacklistSwitch(d *Open123, ctx context.Context, args model.OtherArgs) (interface{}, error) {
	var req struct {
		Status int `json:"status"`
	}
	if err := decodeOtherArgs(args.Data, &req); err != nil {
		return nil, err
	}
	if req.Status != int(pan123.IPBlacklistEnabled) && req.Status != int(pan123.IPBlacklistDisabled) {
		return nil, fmt.Errorf("status must be %d (enabled) or %d (disabled)",
			pan123.IPBlacklistEnabled, pan123.IPBlacklistDisabled)
	}
	done, err := d.client.Link.SwitchIPBlacklist(ctx, pan123.IPBlacklistStatus(req.Status))
	if err != nil {
		return nil, err
	}
	return okResult{Success: done}, nil
}

// ---------------------------------------------------------------- offline download

// offlineDownloadArgs is shared by the cloud disk and the image hosting task.
type offlineDownloadArgs struct {
	URL         string `json:"url"`
	FileName    string `json:"file_name"`
	DirID       int64  `json:"dir_id"`
	CallBackURL string `json:"call_back_url"`
}

View on GitHub (pinned to 843d9dc814)

Solutions

  1. Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry.

When it happens

Trigger: Thrown at drivers/123_open/other.go:575 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/cc7033813bb16084. Report an issue: GitHub.