{"record":{"id":"ba6f88aabf59778e","repo":"AlistGo/alist","slug":"failed-to-list-blobs-w-ba6f88","errorCode":null,"errorMessage":"failed to list blobs: %w","messagePattern":"failed to list blobs: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/util.go","lineNumber":74,"sourceCode":"}\n\n// flattenListBlobs - Optimize blob listing to handle pagination better\nfunc (d *AzureBlob) flattenListBlobs(ctx context.Context, prefix string) ([]container.BlobItem, error) {\n\t// Standardize prefix format\n\tprefix = ensureTrailingSlash(prefix)\n\n\tvar blobItems []container.BlobItem\n\tpager := d.containerClient.NewListBlobsFlatPager(&container.ListBlobsFlatOptions{\n\t\tPrefix: &prefix,\n\t\tInclude: container.ListBlobsInclude{\n\t\t\tMetadata: true,\n\t\t},\n\t})\n\n\tfor pager.More() {\n\t\tpage, err := pager.NextPage(ctx)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to list blobs: %w\", err)\n\t\t}\n\n\t\tfor _, blob := range page.Segment.BlobItems {\n\t\t\tblobItems = append(blobItems, *blob)\n\t\t}\n\t}\n\n\treturn blobItems, nil\n}\n\n// batchDeleteBlobs - Simplify batch deletion logic\nfunc (d *AzureBlob) batchDeleteBlobs(ctx context.Context, blobPaths []string) error {\n\tif len(blobPaths) == 0 {\n\t\treturn nil\n\t}\n\n\t// Process in batches of MaxBatchSize\n\tfor i := 0; i < len(blobPaths); i += MaxBatchSize {","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/util.go#L56-L92","documentation":"Error \"failed to list blobs: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/util.go:74 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"}