This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Update WebRequest to HttpClient #577
Labels
Area-Azure
Issue relates to Azure Quantum integration.
Area-Kernel
Issue relates to the IQ# kernel.
Kind-Bug
Something isn't working
Kind-Enhancement
New feature or request
Describe the bug
Some portions of the IQ# kernel use
System.Net.WebRequest
to make HTTP requests to the Azure Quantum service, but this API has been deprecated and does not properly support cooperative cancellation viaCancellationToken
values. As a result, a timeout failure internal toWebRequest
may not be interruptible, resulting in a hung kernel instance that does not respond to Jupyter interrupt requests.These APIs should be updated to use the newer
HttpClient
API and to propagate cancellation tokens through HTTP requests made via this API.The text was updated successfully, but these errors were encountered: