{"record":{"id":"0059577232398d8f","repo":"AlistGo/alist","slug":"failed-to-list-blobs-w","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/driver.go","lineNumber":97,"sourceCode":"// Drop releases resources associated with the Azure Blob client.\nfunc (d *AzureBlob) Drop(ctx context.Context) error {\n\td.client = nil\n\treturn nil\n}\n\n// List retrieves blobs and directories under the specified path.\nfunc (d *AzureBlob) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) {\n\tprefix := ensureTrailingSlash(dir.GetPath())\n\n\tpager := d.containerClient.NewListBlobsHierarchyPager(\"/\", &container.ListBlobsHierarchyOptions{\n\t\tPrefix: &prefix,\n\t})\n\n\tvar objs []model.Obj\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\t// Process directories\n\t\tfor _, blobPrefix := range page.Segment.BlobPrefixes {\n\t\t\tobjs = append(objs, &model.Object{\n\t\t\t\tName:     path.Base(strings.TrimSuffix(*blobPrefix.Name, \"/\")),\n\t\t\t\tPath:     *blobPrefix.Name,\n\t\t\t\tModified: *blobPrefix.Properties.LastModified,\n\t\t\t\tCtime:    *blobPrefix.Properties.CreationTime,\n\t\t\t\tIsFolder: true,\n\t\t\t})\n\t\t}\n\n\t\t// Process files\n\t\tfor _, blob := range page.Segment.BlobItems {\n\t\t\tif strings.HasSuffix(*blob.Name, \"/\") {\n\t\t\t\tcontinue\n\t\t\t}","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L79-L115","documentation":"Error \"failed to list blobs: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:97 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"}