AzureCosmosDB / PartitionKeyDeleteFeedbackGroup

Private repo for the preview of the delete by partition key value feature in Cosmos DB.
3 stars 0 forks source link

400 when executing DeleteAllItemsByPartitionKeyStreamAsync #14

Open Mortana89 opened 3 years ago

Mortana89 commented 3 years ago

For some reason, when we try to execute a delete by partition on a container, we get the following error: Response status code does not indicate success: BadRequest (400); String argument resourcePathSegment is null or empty

Don't really know what else I can share here that is relevant, but this is causing the functionality not to work. We are using AAD authentication in the client, if that would be of any interest.

srwshkrshnn commented 2 years ago

Hello @Mortana89 Could you please share the input parameters of the DeleteAllItemsByPartitionKeyStreamAsync call (along with its request options) and the entire complete message?

Mortana89 commented 2 years ago

Hello,

It's been a while so I will need to dig up the old package and try again. Before I do so, can you confirm it still works before I dig in? We got it working though, it just suddenly stopped working...

srwshkrshnn commented 2 years ago

Hello @Mortana89 I tried the DeleteAllItemsByPartitionKeyStreamAsync action with a client built using AAD authentication, and I am not getting a 400 response. Could you confirm if you are still facing this issue? If you do, could you please share more details about the request (like account/database/collection names, how you build the token credential, any client options you specify, etc.) for us to investigate further?

Mortana89 commented 2 years ago

Hi,

I tried finding the interface, but I can't seem to find it anymore in the latest preview SDK?

srwshkrshnn commented 2 years ago

Are you using 3.15.1-privatepkdelete-20210115 version of the SDK? You should be able to download this nuget package from this repository.