{"record":{"id":"ee058b472320c16f","repo":"AlistGo/alist","slug":"parse-thaw-request-w","errorCode":null,"errorMessage":"parse thaw request: %w","messagePattern":"parse thaw request: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/s3/other.go","lineNumber":147,"sourceCode":"\nfunc (d *S3) archiveStatus(ctx context.Context, args model.OtherArgs) (interface{}, error) {\n\tkey := getKey(args.Obj.GetPath(), false)\n\tstatus, err := d.describeObjectStatus(ctx, key)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ArchiveResponse{\n\t\tAction:       \"archive_status\",\n\t\tObject:       d.describeObject(args.Obj, key),\n\t\tStorageClass: status.StorageClass,\n\t}, nil\n}\n\nfunc (d *S3) thaw(ctx context.Context, args model.OtherArgs) (interface{}, error) {\n\tkey := getKey(args.Obj.GetPath(), false)\n\tpayload := ThawRequest{Days: 1}\n\tif err := DecodeOtherArgs(args.Data, &payload); err != nil {\n\t\treturn nil, fmt.Errorf(\"parse thaw request: %w\", err)\n\t}\n\tif payload.Days <= 0 {\n\t\tpayload.Days = 1\n\t}\n\trestoreRequest := &s3.RestoreRequest{\n\t\tDays: aws.Int64(payload.Days),\n\t}\n\tif tier := NormalizeRestoreTier(payload.Tier); tier != \"\" {\n\t\trestoreRequest.GlacierJobParameters = &s3.GlacierJobParameters{Tier: aws.String(tier)}\n\t}\n\tinput := &s3.RestoreObjectInput{\n\t\tBucket:         &d.Bucket,\n\t\tKey:            &key,\n\t\tRestoreRequest: restoreRequest,\n\t}\n\trestoreReq, _ := d.client.RestoreObjectRequest(input)\n\trestoreReq.SetContext(ctx)\n\tif err := restoreReq.Send(); err != nil {","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/s3/other.go#L129-L165","documentation":"Error \"parse thaw request: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/s3/other.go:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}