Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
3.72k stars 127 forks source link

protocol error: incomplete envelope: context canceled #270

Open serranomorante opened 7 months ago

serranomorante commented 7 months ago

Hi! Codeium was working fine until latest updates. I haven't seen this error reported here yet. Is kinda annoying. Thank you.

Neovim nightly Arch linux Codeium latest Plenary latest

completion request failed
completion request failed
[codeium] [ERROR 18:48:15] /home/.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/notify.lua:14: completion request failed:  {
[codeium]   code = 0,
[codeium]   out = '{"code":"invalid_argument","message":"protocol error: incomplete envelope: context canceled"}',
[codeium]   response = {
[codeium]     body = '{"code":"invalid_argument","message":"protocol error: incomplete envelope: context canceled"}',
[codeium]     exit = 0,
[codeium]     headers = { "Accept-Encoding: gzip", "Content-Type: application/json", "Vary: Origin", "Date: Thu, 30 Nov 2023 17:48:15 GMT", "Content-Length: 93", "", "" },
[codeium]     status = 400
[codeium]   },
[codeium]   status = 400
[codeium] }
[codeium] [WARN  18:48:16] /home/.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:275: failed to cancel in-flight request {
[codeium]   code = 0,
[codeium]   out = '{"code":"unknown","message":"no session state for apiKey <...>, sessionId "}',
[codeium]   response = {
[codeium]     body = '{"code":"unknown","message":"no session state for apiKey <...>, sessionId "}',
[codeium]     exit = 0,
[codeium]     headers = { "Accept-Encoding: gzip", "Content-Type: application/json", "Vary: Origin", "Date: Thu, 30 Nov 2023 17:48:16 GMT", "Content-Length: 107", "", "" },
[codeium]     status = 500
[codeium]   },
[codeium]   status = 500
[codeium] }
pqn commented 7 months ago

Thanks for the report, we are looking into it.

pqn commented 7 months ago

https://github.com/connectrpc/connect-go/issues/645

serranomorante commented 7 months ago

Thanks, I believe this would help to solve the issue on all languages (it happens to me on lua and javascript) not just go. 👍👍

pithecantrope commented 7 months ago

Same error