Closed cplankl closed 1 month ago
Will be fixed in the next version of the client, I'll update when it does.
We just released 12.2.2 - try it out
Awesome! Now the KustoClientRequestCanceledByUserException
is thrown when cancellation was requested! Thank you very much! :-)
By convention, KustoClientRequestCanceledByUserException
should inherit from OperationCancelledException.
KustoClientException
-> KustoException
-> Exception
.Side Note:
Hey there,
I`m quite happy with the cancellation feature for the Azure Kusto SDK introduced in Version 11.3.0.
I tried to implement the new cancellation feature using the latest Microsoft.Azure.Kusto.Data package (Version 12.1.2) in my backend API but somehow I find the exception type and also the exception message a bit misleading or maybe I do it wrong.
I get the following message after cancellation in e.g. Postman:
I removed default database name and resource name in the logs
The type is a bit misleading here: KustoClientTimeoutException. I would expect some kind of TaskCancelledException or an OperationCancelledException or any other property to give me a hint that this operation is cancelled. Maybe also in an inner exception
Also the message is a bit misleading: Kusto client timed-out when sending a request to the service.
Maybe I did something wrong here in implementing this feature?
I also added the code I used to generate this example as zip file. KustoWebApiWithControllers.zip