thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.
https://wingetty.dev
GNU Affero General Public License v3.0
191 stars 18 forks source link

Winget Install package downloads from repo without tcp port #65

Closed xrbh70 closed 1 month ago

xrbh70 commented 1 month ago

Describe the bug When installing a package using winget it gives 404 error

winget install Python.Python114 Found Python114 [Python.Python114] Version 3.11.4 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://internal_server.net/api/download/Python.Python114/3.11.4/x64/both An unexpected error occurred while executing the command: Download request status is not success. 0x80190194 : Not found (404).

The source has the Company https://internal_server.net:8082/wg/ for private repository

If I manually download the file just adding the 8082 port it downloads the file Downloading https://internal_server.net:8082/api/download/Python.Python114/3.11.4/x64/both instead of the https://internal_server.net/api/download/Python.Python114/3.11.4/x64/both that winget is using but not putting the 8082 tcp port

How can this be fixed?

To Reproduce Steps to reproduce the behavior:

  1. Install Wingetty Repo using a diferent TCP Port
  2. Add the source with the TCP port
  3. Add a package
  4. try to install 5the package from winget

Expected behavior

I will expect the message Downloading https://internal_server.net:8082/api/download/Python.Python114/3.11.4/x64/both

Screenshots If applicable, add screenshots to help explain your problem.

General Information:

Additional context

xrbh70 commented 1 month ago

It was an nginx error configuration