Skip to content

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

Closed

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

  1. github-actions commented on Feb 11, 2026

    @github-actions
    Contributor

    Thanks for reporting this, @lbussell! I've labeled this as a bug with the .NET SDK.

    The issue is clear: the bundled CLI download times out after 100 seconds when building on macOS arm64, even though the same file downloads instantly in a browser. This appears to be an issue with the MSBuild download task's HttpClient timeout or network configuration.

    This should be investigated by the maintainers.

    AI generated by Issue Triage Agent

  2. lbussell commented on Feb 11, 2026

    @lbussell
    Author

    Also, version 0.1.23 works fine.

  3. SteveSandersonMS commented on Feb 12, 2026

    @SteveSandersonMS
    Contributor

    Thanks! We'll update this to use a longer timeout.

  4. added a commit that references this issue on Feb 17, 2026
    d6b45d3
  5. added a commit that references this issue on Feb 17, 2026
    e22d235
  6. added a commit that references this issue on Aug 4, 2026
    1cf816a
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