Skip to content

BlobOperations.delete() raises error on status_code = 200 #41711

Open
@mrjsj

Description

@mrjsj
  • Package Name: azure.storage.blob
  • Package Version: 12.25.1
  • Operating System: Pop!_OS 22.04 LTS x86_64
  • Python Version: 3.12

Describe the bug
When a 3rd party lib uses the azure.storage.blob to delete a file, it sometimes raises error when delete_blob returns status code 200 OK.

This seems to be an issue here - only accepting 202's

and here:

To Reproduce
Steps to reproduce the behavior:

  1. Register filesystem on DuckDB
  2. Try to overwrite existing file.
from adlfs import AzureBlobFileSystem
import duckdb

fs = AzureBlobFileSystem(
    account_name="myaccount",
    anon=False,
)


conn = duckdb.connect()
conn.register_filesystem(fs)

# Create a file
conn.execute("COPY (SELECT 1 AS 'a') TO 'abfs://mycontainer/myfile.parquet'")

# Try to overwrite - sometimes returns status code 200 which raises error
conn.execute("COPY (SELECT 1 AS 'a') TO 'abfs://mycontainer/myfile.parquet'")

Expected behavior
Should not raise error when successful.

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions