AlistGo/alist · error

parse thaw request: %w

Error message

parse thaw request: %w

What it means

Error "parse thaw request: %w" thrown in AlistGo/alist.

Source

Thrown at drivers/s3/other.go:147

func (d *S3) archiveStatus(ctx context.Context, args model.OtherArgs) (interface{}, error) {
	key := getKey(args.Obj.GetPath(), false)
	status, err := d.describeObjectStatus(ctx, key)
	if err != nil {
		return nil, err
	}
	return ArchiveResponse{
		Action:       "archive_status",
		Object:       d.describeObject(args.Obj, key),
		StorageClass: status.StorageClass,
	}, nil
}

func (d *S3) thaw(ctx context.Context, args model.OtherArgs) (interface{}, error) {
	key := getKey(args.Obj.GetPath(), false)
	payload := ThawRequest{Days: 1}
	if err := DecodeOtherArgs(args.Data, &payload); err != nil {
		return nil, fmt.Errorf("parse thaw request: %w", err)
	}
	if payload.Days <= 0 {
		payload.Days = 1
	}
	restoreRequest := &s3.RestoreRequest{
		Days: aws.Int64(payload.Days),
	}
	if tier := NormalizeRestoreTier(payload.Tier); tier != "" {
		restoreRequest.GlacierJobParameters = &s3.GlacierJobParameters{Tier: aws.String(tier)}
	}
	input := &s3.RestoreObjectInput{
		Bucket:         &d.Bucket,
		Key:            &key,
		RestoreRequest: restoreRequest,
	}
	restoreReq, _ := d.client.RestoreObjectRequest(input)
	restoreReq.SetContext(ctx)
	if err := restoreReq.Send(); err != nil {

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/s3/other.go:147 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/ee058b472320c16f. Report an issue: GitHub.