AlistGo/alist · error

[terabox] failed to create file, errno

Error message

[terabox] failed to create file, errno: %d

What it means

Put reports that Terabox's /api/create responded with a non-zero errno after all blocks were uploaded, meaning the server refused to finalize the file. The upload session data (uploadid, block list) was accepted for transfer but finalization failed.

Solutions

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

Strategy: retry

When it happens

Trigger: Thrown at drivers/terabox/driver.go:268 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/7ef0c7ea48f687a3. Report an issue: GitHub.

Appendix: source

Thrown at drivers/terabox/driver.go:268

	if err != nil {
		return err
	}
	data = map[string]string{
		"path":        rawPath,
		"size":        strconv.FormatInt(stream.GetSize(), 10),
		"uploadid":    precreateResp.Uploadid,
		"target_path": dstDir.GetPath(),
		"block_list":  uploadBlockListStr,
		"local_mtime": strconv.FormatInt(stream.ModTime().Unix(), 10),
	}
	var createResp CreateResp
	res, err = d.post_form("/api/create", params, data, &createResp)
	log.Debugln(string(res))
	if err != nil {
		return err
	}
	if createResp.Errno != 0 {
		return fmt.Errorf("[terabox] failed to create file, errno: %d", createResp.Errno)
	}
	return nil
}

var _ driver.Driver = (*Terabox)(nil)

View on GitHub (pinned to 843d9dc814)