{"record":{"id":"bfff534231f7d74a","repo":"AlistGo/alist","slug":"failed-to-create-or-access-container-s-w","errorCode":null,"errorMessage":"failed to create or access container [%s]: %w","messagePattern":"failed to create or access container \\[(.+?)\\]: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/util.go","lineNumber":231,"sourceCode":"\t}\n\n\t_, err = dstBlob.StartCopyFromURL(ctx, srcURL, nil)\n\treturn err\n\n}\n\n// createContainerIfNotExists - Create container if not exists\n// Clean up commented code\nfunc (d *AzureBlob) createContainerIfNotExists(ctx context.Context, containerName string) error {\n\tserviceClient := d.client.ServiceClient()\n\tcontainerClient := serviceClient.NewContainerClient(containerName)\n\n\tvar options = service.CreateContainerOptions{}\n\t_, err := containerClient.Create(ctx, &options)\n\tif err != nil {\n\t\tvar responseErr *azcore.ResponseError\n\t\tif errors.As(err, &responseErr) && responseErr.ErrorCode != \"ContainerAlreadyExists\" {\n\t\t\treturn fmt.Errorf(\"failed to create or access container [%s]: %w\", containerName, err)\n\t\t}\n\t}\n\n\td.containerClient = containerClient\n\treturn nil\n}\n\n// mkDir creates a virtual directory marker by uploading an empty blob with metadata.\nfunc (d *AzureBlob) mkDir(ctx context.Context, fullDirName string) error {\n\tdirPath := ensureTrailingSlash(fullDirName)\n\tblobClient := d.containerClient.NewBlockBlobClient(dirPath)\n\n\t// Upload an empty blob with metadata indicating it's a directory\n\t_, err := blobClient.Upload(ctx, struct {\n\t\t*bytes.Reader\n\t\tio.Closer\n\t}{\n\t\tReader: bytes.NewReader([]byte{}),","sourceCodeStart":213,"sourceCodeEnd":249,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/util.go#L213-L249","documentation":"Error \"failed to create or access container [%s]: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/util.go:231 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"}