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

Falha ao ativar extensão #7

Open
netomarchiori opened this issue May 14, 2024 · 12 comments
Open

Falha ao ativar extensão #7

netomarchiori opened this issue May 14, 2024 · 12 comments

Comments

@netomarchiori
Copy link

Segui o passo a passo e instalei o ollama-copilot sem problemas, instalei a extensão no VS Code e já estava com o sign in no github feito.

Mesmo ao configurar o debug.overrideProxyUrl nos settings, ainda vejo:

[error] [auth] Extension activation failed: "No access to GitHub Copilot found. You are currently logged in as neto-marchiori."

e a extensão fica com falha de ativação. tem algum jeito de contornar isso?

@bernardo-bruning
Copy link
Owner

bernardo-bruning commented May 17, 2024

Olá @netomarchiori

Percebi que realmente o proxy não está funcionando no vscode para usuários que não possuem copilot ativo.
Consegue testar os seguintes passos?

  1. Adicionar nas configurações um bypass de validação de certificados.
"http.proxyStrictSSL": false,
  1. Ao executar o vscode forçar proxy no nível de sistema operacional.
export HTTPS_PROXY=https://localhost:11435
vscode

Esse problema ocorre pois parece que o VS code não está respeitando completamente as configurações de proxy impostas. Vou trabalhar nisso nos próximos dias.

@netomarchiori
Copy link
Author

testo e te retorno sem falta

@netomarchiori
Copy link
Author

@bernardo-bruning , nada feito...se forço no nivel do sistema operacional ate parece que deu certo porem vejo um monte de

failed to read request: malformed HTTP request

e

failed to transfer: writeto tcp [::1]:56449->[::1]:11436

@bernardo-bruning
Copy link
Owner

@netomarchiori acredito que te induzi a um erro.
Nas configurações de proxy era para ter a URL em http.

export HTTPS_PROXY=http://localhost:11435

@netomarchiori
Copy link
Author

netomarchiori commented May 20, 2024

nada feito, várias mensagens de failed to transfer e `TLS handshake error``

2024/05/20 08:58:57 failed to transfer: writeto tcp [::1]:58911->[::1]:11436: readfrom tcp 127.0.0.1:11435->127.0.0.1:58910: read tcp [::1]:58911->[::1]:11436: use of closed network connection
2024/05/20 08:58:57 http: TLS handshake error from [::1]:58911: EOF

nas configurações tenho o seguinte

"github.copilot.advanced": {
    "debug.overrideProxyUrl": "http://localhost:11437",
  },
  "http.proxy": "http://localhost:11435",
  "http.proxyStrictSSL": false,

repare que pelo menos agora a extensão aparece com status Ready (primeira vez)

@ranzou06
Copy link

ranzou06 commented Jun 6, 2024

tive o mesmo cenário aqui, com os erros de handshake, alguma ideia de como resolver?

@bernardo-bruning
Copy link
Owner

@ranzou06 pode compartilhar logs do vscode e do ollama-copilot?

Consegue testar a ultima versão da master?

@ritamariavermelho06
Copy link

Quando tiver um tempinho livre coloco para rodar novamente e posto aqui! depois de algumas tentativas passou a funcionar mas, ficou bem instável, algumas requisições davam o erro de certificado, handshake aparecia o tempo inteiro.

@artromone
Copy link

Could you guys please speak English, it is not comfortable to translate each sentence :)

@netomarchiori
Copy link
Author

Could you guys please speak English, it is not comfortable to translate each sentence :)

absolutely! are you also experiencing issues on enabling the extension?

@artromone
Copy link

absolutely! are you also experiencing issues on enabling the extension?

good one! :) but I am using vim-like browser with no extensions, and sometimes view the feed using mobile

@shahrokh-bahtooei
Copy link

I also installed ollama-copilot as instructed, set the proxy setting in vscode, and tried separately both % export HTTPS_PROXY=https://localhost:11435 and % export HTTPS_PROXY=http://localhost:11435, but I faced with this error in vscode:

2024-08-02 14:48:25.528 [error] [auth] auth: FetchError: self signed certificate
    at fetch (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)
    at XO.fetch (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/lib/src/network/helix.ts:96:22)
    at fetchCopilotToken (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/lib/src/auth/copilotToken.ts:197:16)
    at authFromGitHubToken (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/lib/src/auth/copilotToken.ts:130:22)
    at auth (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/extension/src/auth.ts:40:25)
    at authShowWarnings (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/extension/src/auth.ts:131:25)
    at EM.getCopilotToken (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/extension/src/auth.ts:174:33)
    at attemptAuthentication (/Users/Sh/.vscode/extensions/github.copilot-1.219.0/extension/src/auth.ts:58:9) {
  type: 'system',
  _name: 'FetchError',
  code: 'DEPTH_ZERO_SELF_SIGNED_CERT',
  errno: undefined,
  erroredSysCall: undefined
}
2024-08-02 14:48:25.529 [error] [auth] self signed certificate

The Chat sidebar still shows that I need to sign in:
Screen Shot 1403-05-12 at 14 58 41

I cannot use GitHub Copilot actions in Command Palette:
Screen Shot 1403-05-12 at 15 00 18

Ollama is running and local models work correctly in other interfaces, e.g. LLM-X. Still, wondering about a good extension/plugin in VSCode or preferably PyCharm to work fluently with local LLMs . . . If only we could use GitHub Copilot as a well-designed extension but with our local LLMs . . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants