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

Invalid authentication. #260

Open
zgcarvalho opened this issue Sep 3, 2024 · 0 comments
Open

Invalid authentication. #260

zgcarvalho opened this issue Sep 3, 2024 · 0 comments

Comments

@zgcarvalho
Copy link

zgcarvalho commented Sep 3, 2024

I installed sg in LazyVim and did SourcegraphLogin.

return {
  {
    "sourcegraph/sg.nvim",
    dependencies = { "nvim-lua/plenary.nvim" },

    config = function()
      require("sg").setup({})
    end,
  },
}

But during nvim start I get the following notification:
notify.info [sg-cody] Invalid authentication. See :help sg.auth

:checkhealth sg seem ok

==============================================================================
sg: require("sg.health").check()

sg.nvim report ~
- Machine: x86_64, sysname: Linux
- OK Valid nvim version: 0.10.1
- OK Found `cargo` (cargo 1.80.1 (376290515 2024-07-16)) is executable
-     Use `:SourcegraphDownloadBinaries` to avoid building locally.
- OK Found `sg-nvim-agent`: "/home/zgcarvalho/.local/share/nvim/lazy/sg.nvim/dist/sg-nvim-agent"
- OK Found `node` (config.node_executable) is executable.
      Version: '20.15.1'
- OK Found `cody-agent`: /home/zgcarvalho/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js
- OK   Authentication setup correctly
- OK     endpoint set to: https://sourcegraph.com
- OK Found correct binary versions: "1.1.0" = "1.1.0"
- OK   Sourcegraph Connection info: {
    access_token_set = true,
    endpoint = "https://sourcegraph.com",
    sg_nvim_version = "1.1.0",
    sourcegraph_version = {
      build = "289592_2024-09-02_5.6-3fa91963fd05",
      product = "289592_2024-09-02_5.6-3fa91963fd05"
    }
  }
- To manage your Cody Account, navigate to: https://sourcegraph.com/cody/manage
- OK Cody Account Information: {
    chat_limit = 200,
    chat_usage = 0,
    code_limit = 20000,
    code_usage = 0,
    cody_pro_enabled = false,
    username = "zgcarvalho-XXXX"
  }
- OK sg.nvim is ready to run

:CodyChat gives me the following notification:

notify.info Unable to get token and/or endpoint for sourcegraph. Use `:SourcegraphLogin` or `:help sg` for more information
{
  authStatus = {
    authenticated = false,
    avatarURL = "",
    codyApiVersion = 0,
    displayName = "",
    endpoint = "https://sourcegraph.com/",
    hasVerifiedEmail = false,
    isDotCom = true,
    isLoggedIn = false,
    primaryEmail = "",
    requiresVerifiedEmail = false,
    showInvalidAccessTokenError = true,
    siteHasCodyEnabled = false,
    siteVersion = "",
    userCanUpgrade = false,
    username = ""
  },
  authenticated = false,
  codyEnabled = false,
  codyVersion = "",
  name = "cody-agent"
}
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

1 participant