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

Cannot authorize to github copilot #23234

Open
huonguyenlt opened this issue Nov 6, 2024 · 3 comments
Open

Cannot authorize to github copilot #23234

huonguyenlt opened this issue Nov 6, 2024 · 3 comments
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/question Questions that haven't been identified as being feature requests or bugs. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach

Comments

@huonguyenlt
Copy link

huonguyenlt commented Nov 6, 2024

Describe the bug

I got an issue when trying to use github copilot extension. It says that my user is not authorized but I actually has a subscription on github copilot business. It is working fine in my local laptop.

Che version

7.90

Steps to reproduce

  1. Create github personal access token with all permissions
  2. Add the personal access token to eclipse-che
  3. Install github copilot extension by installing from vsix, github copilot version 1.243.0 or 1.173.0
  4. Sign in to github successfully but the user is not authorized.

Expected behavior

github copilot extension should working properly

Runtime

OpenShift

Screenshots

image

Installation method

other (please specify in additional context)

Environment

Dev Sandbox (workspaces.openshift.com)

Eclipse Che Logs

Error log after sign in to github


2024-11-06 07:18:27.246 [info] [certificates] Removed 2 expired certificates
2024-11-06 07:18:27.512 [info] [auth] Invalid copilot token: missing token: 404 
2024-11-06 07:18:27.515 [error] [auth] auth: CopilotAuthError: User not authorized
    at authShowWarnings (/checode/remote/extensions/github.copilot-1.243.0/extension/src/auth.ts:144:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at tae.getCopilotToken (/checode/remote/extensions/github.copilot-1.243.0/extension/src/auth.ts:174:33)
    at attemptAuthentication (/checode/remote/extensions/github.copilot-1.243.0/extension/src/auth.ts:58:9) {
  cause: undefined
}
2024-11-06 07:18:27.515 [error] [auth] User not authorized
2024-11-06 07:20:15.324 [info] [auth] Invalid copilot token: missing token: 404 
2024-11-06 07:20:15.329 [info] [auth] Invalid copilot token: missing token: 404 
2024-11-06 07:20:15.331 [info] [auth] Invalid copilot token: missing token: 404 

Error log when trying to enable copilot

2024-11-06 07:20:58.401 [error] Error: command 'github.copilot.generate' not found
    at T8e.n (https://devspaces.apps.sandbox-m4.g2pi.p1.openshiftapps.com/nlthuong/che-docs-fwe5/3100/oss-dev/static/out/vs/code/browser/workbench/workbench.js:1296:1341)
    at T8e.executeCommand (https://devspaces.apps.sandbox-m4.g2pi.p1.openshiftapps.com/nlthuong/che-docs-fwe5/3100/oss-dev/static/out/vs/code/browser/workbench/workbench.js:1296:1273)
2024-11-06 07:30:48.428 [error] Error: command 'github.copilot.generate' not found
    at T8e.n (https://devspaces.apps.sandbox-m4.g2pi.p1.openshiftapps.com/nlthuong/che-docs-fwe5/3100/oss-dev/static/out/vs/code/browser/workbench/workbench.js:1296:1341)
    at T8e.executeCommand (https://devspaces.apps.sandbox-m4.g2pi.p1.openshiftapps.com/nlthuong/che-docs-fwe5/3100/oss-dev/static/out/vs/code/browser/workbench/workbench.js:1296:1273)


### Additional context

_No response_
@huonguyenlt huonguyenlt added the kind/bug Outline of a bug - must adhere to the bug report template. label Nov 6, 2024
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Nov 6, 2024
@tolusha
Copy link
Contributor

tolusha commented Nov 6, 2024

cc @vitaliy-guliy

@huonguyenlt
Copy link
Author

When I use github copilot in my laptop, when asking for sign in github, it opens github page to login. However, in che, I have to use github personal access token. Not sure if that causes the issue. Is there any way to let eclispe che open github page to login instead of using personal access token?

@ibuziuk
Copy link
Member

ibuziuk commented Nov 6, 2024

@ibuziuk ibuziuk added kind/question Questions that haven't been identified as being feature requests or bugs. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach area/editor/vscode Issues related to the Code OSS editor of Che and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. kind/bug Outline of a bug - must adhere to the bug report template. labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/question Questions that haven't been identified as being feature requests or bugs. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach
Projects
None yet
Development

No branches or pull requests

4 participants