Skip to content

[BUG] Error occurs with Chocolatey local repository #5426

Description

@Varamil

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

2026.3.0

Windows version, edition, and architecture

Windows 11 Pro, 26200.9457, x64

Describe your issue

I've added a new local source to Chocolatey. The source is properly detected by UniGetUI when I check into Chocolatey options.
However, when I look for a package, nothing is found, whereas if I use Chocolatey CLI (choco find or choco install) I have no issue to find and install my package.
Moreover, after I installed the package using Chocolatey CLI, the package is properly listed in "installed packages" with source as "Chocolatey: community".

Steps to reproduce the issue

  1. Add a new file based source to Chocolatey (ie file://... url) with any valid nupkg file in this folder.
  2. Perform any search with UniGetUI
  3. Look for logs

UniGetUI Log

[22/09/2026 08:44:27]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 2026.3.0
[22/09/2026 08:44:27]   
[22/09/2026 08:44:27] Build 107
[22/09/2026 08:44:27] UI Framework: Avalonia
[22/09/2026 08:44:27] Data directory C:\Users\USER\AppData\Local\UniGetUI
[22/09/2026 08:44:27] OS: Microsoft Windows 10.0.26200
[22/09/2026 08:44:27] Process arch: X64 (OS: X64)
[22/09/2026 08:44:27] Runtime: .NET 10.0.12
[22/09/2026 08:44:27] Loaded language locale: fr
[22/09/2026 08:44:27] Elevated: True
[22/09/2026 08:44:27] Packaged (MSIX): False
[22/09/2026 08:44:27] Args: (none)
[22/09/2026 08:44:27] DXGI hardware GPU detection took 17.7 ms; hardware GPU: True
[22/09/2026 08:44:28] Command cargo-binstall.exe was not found on the system
[22/09/2026 08:44:28] Unable to retrieve secret for resource 'UniGetUI/GitHubAccessToken': Élément introuvable.
                      
                      Impossible d’obtenir des informations d’identification du coffre
[22/09/2026 08:44:28] Unable to retrieve secret for resource 'UniGetUI/GitHubAccessToken': Élément introuvable.
                      
                      Impossible d’obtenir des informations d’identification du coffre
[22/09/2026 08:44:28] Unable to retrieve secret for resource 'UniGetUI/GitHubAccessToken': Élément introuvable.
                      
                      Impossible d’obtenir des informations d’identification du coffre
[22/09/2026 08:44:28] Starting Avalonia shell bootstrap
[22/09/2026 08:44:28] Loaded language locale: fr
[22/09/2026 08:44:28] Generated a IPC API auth token for the current session
[22/09/2026 08:44:28] PowerShell is not enabled
[22/09/2026 08:44:28] PowerShell7 is not enabled
[22/09/2026 08:44:28] vcpkg is not enabled
[22/09/2026 08:44:28] .NET Tool is not enabled
[22/09/2026 08:44:28] Pip is not enabled
[22/09/2026 08:44:28] Cargo is not enabled
[22/09/2026 08:44:28] Bun is not enabled
[22/09/2026 08:44:28] Npm is not enabled
[22/09/2026 08:44:28] Scoop is not enabled
[22/09/2026 08:44:28] Chocolatey is enabled and was found on C:\ProgramData\chocolatey\bin\choco.exe
[22/09/2026 08:44:28] Running elevated, WinGet class registration is likely to fail unless using lower trust class registration is allowed in settings
[22/09/2026 08:44:28] Packaged WinGet COM activation failed (0x80040154: Class not registered), attempting lower-trust activation...
[22/09/2026 08:44:28] Connected to WinGet API using lower-trust COM activation.
[22/09/2026 08:44:28] WinGet activation mode selected: lower-trust COM registration | Source: system COM registration (allow lower trust)
[22/09/2026 08:44:28] Winget is enabled and was found on C:\Users\USER\AppData\Local\Microsoft\WindowsApps\winget.exe
[22/09/2026 08:44:28] Api running on named pipe UniGetUI.IPC
[22/09/2026 08:44:28] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: WinGet (aka Winget)
                      █ Executable name: "winget.exe"
                      █ Executable path: "C:\Users\USER\AppData\Local\Microsoft\WindowsApps\winget.exe"
                      █ Call arguments: ""
                      █ Version: System WinGet (CLI) Version: v1.29.380
                      █          Using Native WinGet helper (COM Api)
                      █          Activation mode: lower-trust COM registration
                      █          Activation source: system COM registration (allow lower trust)
                      █          
                      █ WinGet is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/09/2026 08:44:29] Auto-updater source 'ProductInfo' returned version 2026.3.0.0 (upgradable=False)
[22/09/2026 08:44:29] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey (aka Chocolatey)
                      █ Executable name: "choco.exe"
                      █ Executable path: "C:\ProgramData\chocolatey\bin\choco.exe"
                      █ Call arguments: ""
                      █ Version: 2.7.4
                      █          
                      █ Chocolatey is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/09/2026 08:44:31] Integrity check passed successfully!
[22/09/2026 08:44:31] Avalonia shell bootstrap completed
[22/09/2026 12:56:01] Found 0 available packages from Chocolatey with the query MYPACKAGE
[22/09/2026 12:56:01] Found 0 available packages from Winget with the query MYPACKAGE

Package Managers Logs

Logged native task on manager Chocolatey. Task type is FindPackages
Process start time: 22/09/2026 11:29:58
Process end time:   22/09/2026 11:29:58

-- Task information
  Begin package search with url=file://Data/nuget/server//Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm='MYPACKAGE'&targetFramework=''&includePrerelease=false&$skip=0&$top=50&semVerLevel=2.0.0 on manager Chocolatey
  Begin package search with url=https://community.chocolatey.org/api/v2//Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm='MYPACKAGE'&targetFramework=''&includePrerelease=false&$skip=0&$top=50&semVerLevel=2.0.0 on manager Chocolatey

-- Task errors
  Source MYSOURCE on manager Chocolatey failed to find package data
  System.NotSupportedException: The 'file' scheme is not supported.
     at System.Net.Http.SocketsHttpHandler.ValidateAndNormalizeRequest(HttpRequestMessage) + 0x232
     at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage, CancellationToken) + 0x53
     at System.Net.Http.HttpClient.Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) + 0x8b
     at UniGetUI.PackageEngine.Managers.PowerShellManager.BaseNuGet.FindPackages_UnSafe(String) + 0xcfc
     at System.Threading.Tasks.Task`1.InnerInvoke() + 0x59
     at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object) + 0x3d
     at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread) + 0x6a
     at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x179
     at System.Threading.WindowsThreadPool.DispatchCallback(IntPtr, IntPtr, IntPtr) + 0x63
  --- End of stack trace from previous location ---
     at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage, CancellationToken) + 0x137
     at System.Net.Http.HttpClient.Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) + 0x13d
     at UniGetUI.PackageEngine.Managers.PowerShellManager.BaseNuGet.FindPackages_UnSafe(String) + 0xcfc

The task reported success

Relevant information

No response

Screenshots and videos

No response

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions