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

Co pilot chat stopped working (does not recognize paid subscription) - offers 30 days trial #857

Closed
foxingreen opened this issue Feb 7, 2024 · 18 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@foxingreen
Copy link

vs code:
Version: 1.86.0 (Universal)
Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937
Date: 2024-01-31T10:29:15.765Z (6 days ago)
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin x64 23.1.0

co-pilot:
GitHub Copilot Chat v0.12.0

I have a paid subscription and all worked fine for months but now it says start your 30 days free trial.
When I click the button it takes me to github where it says I already have
a paid subscription.
How can I get it back to work

Mac os Sonoma 14.1.2

Steps to Reproduce:

  1. Click on chat extension on the toolbar
  2. Prompts to start a 30 day trial
@github-actions github-actions bot added the triage-needed Issues needing to be assigned to the prospective feature owner label Feb 7, 2024
@foxingreen
Copy link
Author

Also stopped working on my visual code studio insiders - there is says login when I try and access the chat but the button does not do anything.

@umerfarok
Copy link

facing this same error
`Version: 1.86.0
Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937
Date: 2024-01-31T10:29:11.933Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.2.0
Screenshot 2024-02-08 at 1 20 36 AM

`
just showing this screen doing nothing ?

@mjbvz mjbvz assigned lramos15 and unassigned mjbvz Feb 7, 2024
@ghost
Copy link

ghost commented Feb 7, 2024

I'm also running into this issue. VS Code says the extension has access to the correct GitHub account in Manage Trusted Extensions.
image

But based on the extension Output, chat seems to be using the authentication I use for Git, which is a different account that does not have a Copilot subscription. I use multiple GitHub accounts, Copilot chat is using the wrong account, and I can't seem to change it. Suggestions still work, however.

@lramos15
Copy link
Member

lramos15 commented Feb 7, 2024

Can you include your logs from CMD / CTRL + SHIFT + U -> Copilot Chat

@lramos15 lramos15 added info-needed Issue requires more information from poster and removed triage-needed Issues needing to be assigned to the prospective feature owner labels Feb 7, 2024
@ghost
Copy link

ghost commented Feb 7, 2024

@lramos15 Here's what I have.

2024-02-07 14:51:32.846 [info] [FetcherService] Using Helix fetcher
2024-02-07 14:51:32.846 [info] [gitExtensionService] Initializing Git extension service.
2024-02-07 14:51:32.846 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-02-07 14:51:32.846 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-02-07 14:51:32.846 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-02-07 14:51:33.125 [info] [auth] Logged in as AnthonyNave-M3
2024-02-07 14:51:33.471 [info] [auth] Invalid copilot token: missing token: 403 
2024-02-07 14:51:33.474 [info] [extension] GitHub Copilot could not connect to server. Extension activation failed: "No access to GitHub Copilot found. You are currently logged in as AnthonyNave-M3."

But my Copilot subscription is on another account, which is what GitHub Copilot (but not chat?) correctly shows up under in the Manage Trusted Extensions screenshot. Thanks!

@lramos15
Copy link
Member

lramos15 commented Feb 7, 2024

Have you tried signing out of the other account and just using the one with access? Multi account can be finnicky

@lramos15 lramos15 assigned TylerLeonhardt and unassigned lramos15 and joyceerhl Feb 7, 2024
@ghost
Copy link

ghost commented Feb 7, 2024

Looks like GitHub Copilot Chat does appear in the list of things that used this account, even though it's not in Manage Trusted Extensions.
image

If I sign out, the extension does correct to the account that has the subscription. But now I can't use my other Git extensions like Source Control and Pull Requests and Issues until I sign back in with the account I need for the repo. Once I do that via the prompts that appear for reauthentication and then I reload the VS Code window, GitHub Copilot Chat goes back to using this account instead of the one that has the subscription and fails to find it. Unfortunately for me, I have to use multiple accounts for work.

@adamdWalkMe
Copy link

I have the same issue, which started happening ~12 hours ago. I discovered I was signed in with two GitHub accounts, and clearly it was using the one without the copilot extension. I also tried to remove access to the account via manage trusted extensions, but GitHub Copilot Chat wasn't an option to deselect, even though when I went to later sign out, it was showin as an extension that had been using the account (same experience as @AnthonyNave-M3).

Anyway, the workaround was to sign out of the other account, which I don't need access to via VS Code anyway.

There should really be an option to configure Copilot to use a specific account, but also, why has this suddently changed for some users?

@paul-pauliskolan
Copy link

paul-pauliskolan commented Feb 8, 2024

Same problem here

Screenshot 2024-02-08 at 12 21 13

@claudiorodr
Copy link

claudiorodr commented Feb 8, 2024

I am also experiencing the same issue (as mention in #849). In my case the problem happens when I log in the Github Copilot extension with my personal account and the Github Pull requests and Issues with my company account (to get access to our private repos). When I log in my company account, Github Copilot Chat also logs in into the company account (while Github Copilot keeps logged in into my personal account) and I lose access to Github Copilot Chat

@umerfarok
Copy link

Resolved by this : =========>
I resolved the issue by logging out all other accounts from VS Code. Those accounts use HTTPS for GitHub authentication. I am utilizing SSH for thjose removed accounts cloning or pushing my code to GitHub, with only one account logged in via HTTPS. This particular account has the Copilot subscription.

@yllekz
Copy link

yllekz commented Feb 10, 2024

I get this error a lot and it's really annoying. The extension needs to be aware that folks may be signed into multiple accounts to do work, and realize that it cannot just de-authorize for no explainable reason when the licensed account remains signed in.

@muneebsajjad
Copy link

Facing the same issue is there any solution to it, I am using MacOS (sonoma 14.1.1)
and this is what I get in the "Output" Logs, although I have the active subscription right now!

Screenshot 2024-02-11 at 2 31 53 PM

[info] [code-referencing] Public code references are enabled.

@geirearnesen
Copy link

Facing same issue here .....

@lramos15
Copy link
Member

lramos15 commented Feb 12, 2024

This issue is caused by VS Code not properly supporting multiple auth sessions. Not much can be done on the extension side until VS Code fixes this. It was a bug that this worked before

Ref:
microsoft/vscode#203850
microsoft/vscode#127967

@TylerLeonhardt
Copy link
Member

Closing as a duplicate of upstream issues called out by @lramos15

@TylerLeonhardt TylerLeonhardt added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Feb 13, 2024
@TylerLeonhardt TylerLeonhardt closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
@WarpedPixel
Copy link

On MacOS the solution is to install VS Code 1.85 and pin the copilot extension 1.161.0. Disable all updates in VSCode Settings. Keep this until this bug and/or microsoft/vscode#127967 are fixed for real. With the pinned versions both GitHub Issues and PRs, as well as CoPilot work just fine with a different account for each.

@ghost
Copy link

ghost commented Feb 23, 2024

To add to @WarpedPixel's comment, I'm using the latest VS Code VS Code 1.85.2 on macOS and Copilot v1.162.0 and Copilot Chat v0.11.1 which works as expected for me. I agree that either this or the other should be fixed before updating as the user experience should not be broken in the meantime when it was working for multiple accounts in these earlier versions and VS Code already appears to support multiple accounts.
microsoft/vscode#127967 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests