Skip to content

Error Submit API-KEY On Windows Machine #325

@pojokcodeid

Description

@pojokcodeid

Hi,

I have a problem
Error sending API-KEY on Windows machine
Specifications

  • Windows 11 OS
  • Powershell Terminal
  • Neovim v 0.11

Chronology of events

  1. I called the command :Codeium Auth
  2. Then I copy the API-KEY from the web
  3. Then I paste it into the API input box in Neovim
  4. After pressing enter Neovim gives an error
Error executing callback:                                                                                                                         
...a/Local/nvim-data/lazy/plenary.nvim/lua/plenary/curl.lua:310: post https://api.codeium.com/register_user/ - curl error exit_code=3 stderr={ "curl: (3) unmatched close brace/bracket in URL position 44:", "7h823jpggoT4qGVZfdWcimKcXCMYG4ejq_ujlmuPg2w}", "                                           ^" }                                                                                                                                        stack traceback:                                                                                                                                          [C]: in function 'error'                                                                                                                          
...a/Local/nvim-data/lazy/plenary.nvim/lua/plenary/curl.lua:310: in function '_user_on_exit'                                                      
...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:241: in function '_shutdown'                                                         
...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:48: in function <...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:39> 
Image

This is my config :

return {
  -- codeium cmp source
  {
    "nvim-cmp",
    event = "BufReadPre",
    dependencies = {
      -- codeium
      {
        "Exafunction/windsurf.nvim",
        cmd = "Codeium",
        enabled = true,
        opts = {
          enable_chat = true,
          enable_cmp_source = true,
          virtual_text = {
            enabled = true,
            key_bindings = {
              accept = "<c-g>",
              next = "<c-Down>",
              prev = "<c-Up>",
            },
          },
        },
        config = function(_, opts)
          require("codeium").setup(opts)
        end,
      },
    },
    --@param opts cmp.ConfigSchema
    opts = function(_, opts)
      table.insert(opts.sources, 1, {
        name = "codeium",
        group_index = 1,
        priority = 100,
      })
    end,
  },
}

Note :
If I try using WSL2 and Debian, the results are normal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions