Skip to content

"Connection error." with CAPIError in the logs #116

Description

@mfronczyk

Describe the bug

I use Copilot in enterprise environment. I switched to Node 24.9 so that it respects my proxy settings and I logged in successfully. However, when I enter any prompt, it thinks for a while and then I get the following error:

Model call failed: "Connection error."
Execution failed: Connection error.

In the copilot logs I see:

Failed to list models: Forbidden
{"name": "CAPIError" }

Can you help me understand whether:

  1. Does the above mean that Copilot CLI is disabled for my organization
  2. Or not necessarily, but the proxy blocks connection to copilot CLI api?
  3. Something else?

Affected version

0.0.328

Steps to reproduce the behavior

  1. Type 'copilot'
  2. Enter "How are you today?"

Expected behavior

I'd like to know how to distinguish an error caused by Copilot CLI being disabled in my organisation vs network connection error so that I get a clue how to resolve it.

Additional context

  • Operating system - Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions