AlistGo/alist · error

preview not available

Error message

preview not available

What it means

previewLink checks info.PreviewMeta.Data["22"] (the preview-render entry); if the key is absent or entry.Status != 0, the server has no usable preview for this file. Not fatal — Link intentionally swallows previewLink errors and falls back to the direct download path.

Solutions

  1. Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at drivers/doubao_new/driver.go:533 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/ae59f18b0f7c21f5. Report an issue: GitHub.

Appendix: source

Thrown at drivers/doubao_new/driver.go:533

}

func (d *DoubaoNew) previewLink(ctx context.Context, obj *Object, args model.LinkArgs) (*model.Link, error) {
	auth := d.resolveAuthorization()
	dpop := d.resolveDpop()
	if auth == "" || dpop == "" {
		return nil, errors.New("missing authorization or dpop")
	}
	if obj.ObjToken == "" {
		return nil, errors.New("missing obj_token")
	}
	info, err := d.getFileInfo(ctx, obj.ObjToken)
	if err != nil {
		return nil, err
	}

	entry, ok := info.PreviewMeta.Data["22"]
	if !ok || entry.Status != 0 {
		return nil, errors.New("preview not available")
	}

	subID := ""
	pageIndex := 0
	if args.HttpReq != nil {
		query := args.HttpReq.URL.Query()
		if v := query.Get("sub_id"); v != "" {
			subID = v
		} else if v := query.Get("page"); v != "" {
			if p, err := strconv.Atoi(v); err == nil && p >= 0 {
				pageIndex = p
			}
		}
	}
	if subID == "" {
		imgExt := ".webp"
		pageNums := 0
		if entry.Extra != "" {

View on GitHub (pinned to 843d9dc814)