Open ashilent opened 10 months ago
I am getting the same issue (inconsistent) but with MAC and VS code
me too
Same error here
me too. using prerelease CoPilot chat (0.13.xxx) on win with vscode, it actually locks up Copilot Chat (stop sign just sits there), and requires a restart of vscode. Rolling back to the CoPilot chat release version (0.12) gives me intermittent ERR_HTTP2_STREAM_CANCEL.. but it eventually resolves.
Could you try adding:
"github.copilot.advanced": {
"debug.useNodeFetcher": true
}
or:
"github.copilot.advanced": {
"debug.useElectronFetcher": true
}
to your user settings. (F1
> Preferences: Open User Settings (JSON)
)
Both are experimental replacements for the current HTTP2 implementation Copilot Chat is using. The first might currently be more stable, the second is expected to stabilize a bit more and then become the default.
I am finding that this is tied to the length of time between queries in CoPilot chat in vscode, but also whether or not I am performing SSL inspection on the traffic.
When the traffic is subject to SSL inspection, the inital conversation works fine but subsequent calls time out with the error referenced by @skavan
With traffic NOT subject to SSL inspection, the initial and subsequent conversations seem to work fine.
Could you try adding:
"github.copilot.advanced": { "debug.useNodeFetcher": true }
or:
"github.copilot.advanced": { "debug.useElectronFetcher": true }
to your user settings. (
F1
>Preferences: Open User Settings (JSON)
)Both are experimental replacements for the current HTTP2 implementation Copilot Chat is using. The first might currently be more stable, the second is expected to stabilize a bit more and then become the default.
Even adding this on Preferences, does not work for me.
same here
same here, with mac and vscode
swiching to pre-release solve it...
I am finding that this is tied to the length of time between queries in CoPilot chat in vscode, but also whether or not I am performing SSL inspection on the traffic.
I also seem to be getting this after a long delay between queries (eg. 12 hours)
Has anyone found the cause of this issue? When our proxy is enabled we see this issue, disabling the proxy we dont see the issue.
also seem to be having the same issue. I have a VPN set up working on vscode with windows
I am also getting this after a short while. Restarting VS Code fixes it for some time. I am on Windows.
This is happening for me as well. It seems to timeout after 10 minutes and I have to restart VS Code.
Update: For me it turned out to be a certificate issue in my corporate network environment. VS Code is not trusting self signed root CAs. I solved it by activating extension "win-ca" and changing setting "Win-ca: Inject" to "Append".
The cert issue was visible in the copilot chat log, which can be accessed from the small copilot icon in the lower right corner in VS Code.
I found this workaround somewhere, didn't figure it out myself, but can't remember where...
This is happeing again sicking tired
Could you install the latest VS Code Insiders (https://code.visualstudio.com/insiders/) and the latest GitHub Copilot Chat pre-release (currently v0.17.2024062801), run F1
> Developer: GitHub Copilot Chat Diagnostics
and share the output here?
Could you try adding:
"github.copilot.advanced": { "debug.useNodeFetcher": true }
or:
"github.copilot.advanced": { "debug.useElectronFetcher": true }
to your user settings. (
F1
>Preferences: Open User Settings (JSON)
)Both are experimental replacements for the current HTTP2 implementation Copilot Chat is using. The first might currently be more stable, the second is expected to stabilize a bit more and then become the default.
any technical benfits?
Could you install the latest VS Code Insiders (https://code.visualstudio.com/insiders/) and the latest GitHub Copilot Chat pre-release (currently v0.17.2024062801), run
F1
>Developer: GitHub Copilot Chat Diagnostics
and share the output here?
win-ca
installed?: falsemac-ca
installed?: falseThat looks good. Maybe try adding the following to the user settings JSON, it uses a different HTTP2 implementation (from Chromium) which might make a difference if the problem is indeed client-side:
"github.copilot.advanced": {
"debug.useElectronFetcher": true
}
I had the same issue on macos after my company started using Global Protect, a vpn application. Solved it using this extension: https://marketplace.visualstudio.com/items?itemName=linhmtran168.mac-ca-vscode
There is a potential fix for this in the latest GitHub Copilot Chat pre-release (v0.18.2024071201). Please give that a try and let us know if this error still occurs. The pre-release version requires the latest VS Code Insiders (https://code.visualstudio.com/insiders/).
The reference from StackOverflow below worked for me:
"""1 - Install win-ca 2 - In the win-ca settings, switch Inject to append mode (it's not the default). 3 - Restart VsCode"""
It would be great to hear from someone who sees the ERR_HTTP2_STREAM_CANCEL
if the fix in the latest GitHub Copilot Chat pre-release improves things. The pre-release version requires the latest VS Code Insiders (https://code.visualstudio.com/insiders/). Thanks.
Thanks @chrmarti, when is it expected to be released as a stable version?
@sag1v In about 2 weeks alongside the next VS Code stable release (which doesn't have a fixed date).
I also had the ERR_HTTP2_STREAM_CANCEL error. Using the Insiders version of VS-Code with the the latest prerelease verison of GitHub CoPilot did NOT work. I could fix it by setting BOTH values to true: "github.copilot.advanced": { "debug.useNodeFetcher": true, "debug.useElectronFetcher": true }
Now it does also work with the stable version of the GitHub CoPilot Chat
I don't believe I've ever encountered this issue myself in the first place, but I'm considering this issue verification-found due to @sries-bhs's comment.
Actually, @sag1v could you also try verifying this issue on the latest VS Code Insiders along with the latest GitHub Copilot Chat pre-release extension?
I don't have verification steps.
Tried all the steps mentioned above including the insider version but the extension did not work. Facing the same issue
@AashishKumar-3002 Could you open a new issue with the GitHub Copilot Chat log (F1
> Output: Show Output Channels...
> GitHub Copilot Chat
) and the diagnostics output (F1
> Developer: GitHub Copliot Chat Diagnostics
) using the latest VS Code Insiders and GitHub Copilot Chat versions?
Has anyone found the cause of this issue? When our proxy is enabled we see this issue, disabling the proxy we dont see the issue.
same here
when i use charles to proxy network. it will happen on there
Reopening based on commenters' reports
Steps to Reproduce: