Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove not exist cache key got exception related to Resource Not Found (404) #37

Closed
thohng opened this issue Feb 17, 2021 · 2 comments
Closed

Comments

@thohng
Copy link
Contributor

thohng commented Feb 17, 2021

Hi,

We got exception Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: NotFound (404) when remove a not exist cache key.

Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 970d262f-dfcf-4b01-8ec1-1a1f25ee18bb; Reason: ({
  "Errors": [
    "Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found"
  ]
});
   at Microsoft.Azure.Cosmos.ResponseMessage.EnsureSuccessStatusCode()
   at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.ProcessMessage[T](ResponseMessage responseMessage, Func`2 createResponse)
   at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.CreateItemResponse[T](ResponseMessage responseMessage)
   at Microsoft.Azure.Cosmos.ContainerCore.DeleteItemAsync[T](CosmosDiagnosticsContext diagnosticsContext, String id, PartitionKey partitionKey, ItemRequestOptions requestOptions, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](CosmosDiagnosticsContext diagnosticsContext, Func`2 task)
   at Microsoft.Extensions.Caching.Cosmos.CosmosCache.RemoveAsync(String key, CancellationToken token)
....
@marcosikkens
Copy link

Hi i've experienced the same problem. Lets hope it will be merged soon.

@ealsur
Copy link
Member

ealsur commented Mar 8, 2021

@ealsur ealsur closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants