Declarative Copilot fails on devtunnel API call: The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing #12691
Labels
needs attention
This issue needs the attention of a contributor.
Describe the bug
Intermittent DevTunnel Timeout When Debugging Declarative Plugin with API Locally
When starting a debugging session (F5) for the Declarative Copilot with API plugin, initial requests often experience a timeout error:
This timeout error generally occurs during the first few attempts, then gradually resolves as the DevTunnel stabilizes. Directly accessing the API via localhost (proxied through DevTunnel) works smoothly, so it seems the issue is specific to DevTunnel initialization delays. This behavior slows down the debugging process, impacting the development experience.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally, DevTunnel should respond promptly from the start, without delays or timeouts.
VS Code Extension Information (please complete the following information):
CLI Information (please complete the following information):
Additional context
There also appears to be occasional caching of the previous DevTunnel URL between reruns, leading to API call failures with a 404 error.
The text was updated successfully, but these errors were encountered: