Devolutions / Devolutions/UniGetUI

[BUG] Getting Server Error: Setting token failed.

Open
#4,031 2 comments 2 reactions 1 assignee Claimed by @marticliment View on GitHub
bug ready-to-go
Dominant language
C#
Stars
26.1k
Forks
924
Avg merge
15h 52m
Merged PRs (30d)
52

Description

### Please confirm these before moving forward

- [x] I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
- [x] I have tested that this issue has not been fixed in the latest [(beta or stable) release](https://github.com/marticliment/WingetUI/releases/).
- [x] I have checked the [FAQ](https://github.com/marticliment/WingetUI#frequently-asked-questions) section for solutions.
- [x] This issue is about a bug (if it is not, please use the [correct template](https://github.com/marticliment/WingetUI/issues/new/choose)).

### UniGetUI Version

3.3.1

### Windows version, edition, and architecture

Windows 11 PRO

### Describe your issue

```
Package update operation for Package=Git.Git with Manager=Winget
Installation options:
Overriden options:
Version: 2.50.1 -> 2.51.0
Starting operation...
Executing process with StartInfo:
- FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
- Arguments: ""C:\Users\gregorys\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "Git.Git" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
Start Time: "8/22/2025 11:39:05 AM"
Server Error: Setting token failed.
Unknown error (0x0)
Error: Failed to substitute token. Connection from server lost.
End Time: "8/22/2025 11:39:07 AM"
Process return value: "999" (0x3E7)
Git could not be updated
```

### Steps to reproduce the issue

Happens every run of UNIGEt for m

### UniGetUI Log

```text
Package update operation for Package=Git.Git with Manager=Winget
Installation options:
Overriden options:
Version: 2.50.1 -> 2.51.0
Starting operation...
Executing process with StartInfo:
- FileName: "C:\Program Files\UniGetUI\Assets\Utilities\UniGetUI Elevator.exe"
- Arguments: ""C:\Users\gregorys\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "Git.Git" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
Start Time: "8/22/2025 11:39:05 AM"
Server Error: Setting token failed.
Unknown error (0x0)
Error: Failed to substitute token. Connection from server lost.
End Time: "8/22/2025 11:39:07 AM"
Process return value: "999" (0x3E7)
Git could not be updated
```

### Package Managers Logs

```text
Manager WinGet with version:
System WinGet CLI Version: v1.11.430
Using Native WinGet helper (COM Api)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 8/21/2025 9:26:45 AM
Process end time: 8/21/2025 9:26:45 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\gregorys\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity "
Process start time: 8/21/2025 9:26:48 AM
Process end time: 8/21/2025 9:26:49 AM

-- Process STDOUT
...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 8/21/2025 9:26:48 AM
Process end time: 8/21/2025 9:26:51 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 8/21/2025 9:26:48 AM
Process end time: 8/21/2025 9:26:50 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 8/21/2025 9:26:49 AM
Process end time: 8/21/2025 9:26:51 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\gregorys\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity "
Process start time: 8/22/2025 9:26:57 AM
Process end time: 8/22/2025 9:27:00 AM

-- Process STDOUT
...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 8/22/2025 9:27:00 AM
Process end time: 8/22/2025 9:27:08 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 8/22/2025 9:27:00 AM
Process end time: 8/22/2025 9:27:03 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 8/22/2025 11:37:10 AM
Process end time: 8/22/2025 11:37:15 AM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 8/22/2025 11:37:10 AM
Process end time: 8/22/2025 11:37:14 AM

-- Task information
...

The task reported success

——————————————————————————————————————————
```

### Relevant information

_No response_

### Screenshots and videos

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.