Skip to main content

Solución de problemas comunes con Copilot

En esta guía se describen los problemas más comunes con Copilot y cómo resolverlos.

For questions about the general use of Copilot, product impact, human oversight, and privacy, see the comprehensive list of Copilot FAQs.

If Copilot stops working, check 's Status page for any active incidents.

Unable to use the Copilot extension in the IDE

We recommend you follow the quickstart guide for Copilot while setting up Copilot on your machine. For more information, see Quickstart for Copilot.

The Copilot extension is frequently updated to fix bugs and add new features. It's important to keep your extension up to date because older clients cannot communicate with the Copilot servers. Update your Copilot extension on all the machines you have it installed.

If you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See Using Copilot with an account on GHE.com.

For more information about configuring Copilot in a supported IDE, see Configuring Copilot in your environment.

Copilot not working in some files

If you're using Copilot with a Copilot Business or Copilot Enterprise license, you may not see code completion suggestions in your editor for some files. This happens when a file is excluded from being used by Copilot. Content exclusion can be configured by a repository administrator, or by an organization owner.

When a file is affected by a content exclusion setting, Copilot will not suggest code completion in that file, and the content of that file will not be used to inform code completion suggestions in other files.

If a file has been configured as excluded content for Copilot, the icon in the status bar will have a diagonal line through it. Hover over the icon to see a tooltip that tells you which settings have applied this restriction.

Screenshot of the Copilot icon in VS Code with a tooltip for a content exclusion.

For more information, see Excluding content from Copilot.

Copilot content exclusions are not being applied

Content exclusion can be configured at the repository and organization level. The scope of the exclusion is determined by the level at which the rule is set:

  • Repository administrators can exclude content for their own repositories. This affects any Copilot users working within those specific repositories.
  • Organization owners can exclude content for users assigned a Copilot seat through their organization.

After you add or change content exclusions, it can take up to 30 minutes to take effect in IDEs where the settings are already loaded. You can apply changes to your own IDE, forcing it to reload the content exclusion settings. For more information, see Excluding content from Copilot.

Nota:

It's possible that Copilot may use semantic information from an excluded file if the information is provided by the IDE indirectly. Examples of such content include type information and hover-over definitions for symbols used in code, as well as general project properties such as build configuration information.

Error: " Copilot could not connect to server. Extension activation failed"

This error indicates that you do not have a Copilot plan, or there was an error connecting to the API to request a token to use Copilot.

To request another token from api..com, try signing in and out of Copilot from your IDE. Once you've logged out, Copilot will prompt you to sign back in.

If you cannot connect to the server, you can create a discussion in our discussion forum. You can include log files from your IDE to help us troubleshoot the issue. For more information on obtaining log files from your specific IDE, see Viewing logs for Copilot in your environment.

Copilot not suggesting multiple lines of code

This is a known issue and our team is working towards a fix. For more information, see this comment on a Community discussion.

Error: "No valid OAuth token detected" in Copilot in the CLI

This error suggests that a classic or fine-grained personal access token might be in use, either via the _TOKEN or GH_TOKEN environment variables, or during a gh auth login attempt. Copilot in the CLI currently only supports using the CLI OAuth app.

For more information, see the Copilot in the CLI extension repository.

Error: "Sorry, your request was rate-limited."

This error suggests that you have exceeded the rate limit for Copilot requests. uses rate limits to ensure everyone has fair access to the Copilot service and to protect against abuse.

Most people see rate limiting for preview models, like OpenAI’s o1 and o3-mini, which are rate-limited due to limited capacity.

Service-level request rate limits ensure high service quality for all Copilot users and should not affect typical or even deeply engaged Copilot usage. We are aware of some use cases that are affected by it. is iterating on Copilot’s rate-limiting heuristics to ensure it doesn’t block legitimate use cases.

In case you experience repeated rate-limiting in Copilot, contact Support.

Further reading