Skip to content

[.NET] Bundled Copilot Cli download times out #451

Description

@lbussell

Steps to repro

Follow the getting started guide.

  1. macOS 26 (Arm64)
  2. dotnet new console -n $whatever -o $wherever
  3. Add to .csproj:
    <ItemGroup Label="Dependencies">
      <PackageReference Include="GitHub.Copilot.SDK" Version="0.1.24-preview.0" />
    </ItemGroup>
  4. Copy-paste in the example code from getting started guide (permalink)
  5. Run dotnet run -v diag

Error message:

CopilotPlayground % dotnet run -v diag
Restore complete (0.2s)
    Determining projects to restore...
    All projects are up-to-date for restore.
  CopilotPlayground net10.0 failed with 1 error(s) (100.1s)
    Downloading Copilot CLI 0.0.405 for darwin-arm64...
    /Users/loganbussell/.nuget/packages/github.copilot.sdk/0.1.24-preview.0/build/GitHub.Copilot.SDK.targets(47,5): error MSB3923: Failed to download file "https://registry.npmjs.org/@github/copilot-darwin-arm64/-/copilot-darwin-arm64-0.0.405.tgz".  The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing. ---> A task was canceled. ---> A task was canceled.

Build failed with 1 error(s) in 100.5s

The build failed. Fix the build errors and run again.

When I download the tarball from the link using my browser, it works no problem (instantly) https://registry.npmjs.org/@github/copilot-darwin-arm64/-/copilot-darwin-arm64-0.0.405.tgz.

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions