{"record":{"id":"28e41b355d4f4546","repo":"AlistGo/alist","slug":"failed-to-upload-file-w","errorCode":null,"errorMessage":"failed to upload file: %w","messagePattern":"failed to upload file: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":294,"sourceCode":"\tblobPath := path.Join(dstDir.GetPath(), stream.GetName())\n\tblobClient := d.containerClient.NewBlockBlobClient(blobPath)\n\n\t// Determine optimal upload options based on file size\n\toptions := optimizedUploadOptions(stream.GetSize())\n\n\t// Track upload progress\n\tprogressTracker := &progressTracker{\n\t\ttotal:          stream.GetSize(),\n\t\tupdateProgress: up,\n\t}\n\n\t// Wrap stream to handle context cancellation and progress tracking\n\tlimitedStream := driver.NewLimitedUploadStream(ctx, io.TeeReader(stream, progressTracker))\n\n\t// Upload the stream to Azure Blob Storage\n\t_, err := blobClient.UploadStream(ctx, limitedStream, options)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to upload file: %w\", err)\n\t}\n\n\treturn &model.Object{\n\t\tPath:     blobPath,\n\t\tName:     stream.GetName(),\n\t\tSize:     stream.GetSize(),\n\t\tModified: time.Now(),\n\t\tIsFolder: false,\n\t}, nil\n}\n\n// The following methods related to archive handling are not implemented yet.\n// func (d *AzureBlob) GetArchiveMeta(...) {...}\n// func (d *AzureBlob) ListArchive(...) {...}\n// func (d *AzureBlob) Extract(...) {...}\n// func (d *AzureBlob) ArchiveDecompress(...) {...}\n\n// Ensure AzureBlob implements the driver.Driver interface.","sourceCodeStart":276,"sourceCodeEnd":312,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L276-L312","documentation":"Error \"failed to upload file: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:294 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-15T22:17:37.221Z"}