codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

nvim 0.9 windows 11 Auth token error

Open 2Senn opened this issue 2 years ago • 2 comments

Error detected while processing function codeium#command#Command[6]..1: line 66: E474: Attempt to decode a blank string E474: Failed to parse

I get this error when I try to enter my auth token. I've seen others mention this in closed issues but none of the solutions mentioned worked for me( I tried deleting the bin file that contains the language server exe but that did not work either.

2Senn avatar Aug 14 '23 11:08 2Senn

Ok so something is wrong with executing the curl command inside neovim. I tried executing outside using the terminal and it worked just fine. Then I manually added the key and created a config.json file. I am not really sure what is causing the curl to fail inside neovim but it could be permissions or something that has to do with env variables.

2Senn avatar Aug 14 '23 21:08 2Senn

Some pointers:

  • The log shows that schannel renegotiates the SSL/TLS connection multiple times. Maybe this is causing some weird timeout behavior inside neovim?
  • I am on neovim 0.9, maybe it is a bug in this version of neovim so would need a confirmation on that from someone else.
  • Shellescape is working correctly as well as json_decode. Everything related to the data being in the right format is correct.

2Senn avatar Aug 14 '23 21:08 2Senn