Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

[Bug] The remote server returned an error: (401) Unauthorized.

Open keyrad-abasi opened this issue 1 year ago • 3 comments

Bug Report

Any attempt to update the following list of packages results in error:

  • gh
  • git
  • telegram
  • windows-terminal

Current Behavior

Errors with this message: The remote server returned an error: (401) Unauthorized.

Expected Behavior

It should be updated without any error.

Additional context/output

Running both in windows-terminal and command prompt results in following error:

C:\Users\keyrada>scoop update git
git: 2.42.0.2 -> 2.43.0
Updating one outdated app:
Updating 'git' (2.42.0.2 -> 2.43.0)
Downloading new version
The remote server returned an error: (401) Unauthorized.
At C:\Users\keyrada\scoop\apps\scoop\current\lib\install.ps1:111 char:9
+         throw $e
+         ~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], WebException
    + FullyQualifiedErrorId : The remote server returned an error: (401) Unauthorized.
C:\Users\keyrada>scoop update gh
gh: 2.38.0 -> 2.39.2
Updating one outdated app:
Updating 'gh' (2.38.0 -> 2.39.2)
Downloading new version
The remote server returned an error: (401) Unauthorized.
At C:\Users\keyrada\scoop\apps\scoop\current\lib\install.ps1:111 char:9
+         throw $e
+         ~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], WebException
    + FullyQualifiedErrorId : The remote server returned an error: (401) Unauthorized.

System details

Windows version: 10 Enterprise, OS build: 19045.3570

OS architecture: 64bit

PowerShell version:

Major Minor Build Revision
5 1 19041 3570

Additional software: Git

Scoop Configuration

{
    "last_update":  "2023-12-01T04:37:49.0323743+03:30",
    "gh_token":  "github-pat-XXX",
    "scoop_branch":  "master",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop"
}

keyrad-abasi avatar Dec 01 '23 01:12 keyrad-abasi

Are you meet this issue with VPN/corporate network?

HUMORCE avatar Dec 30 '23 06:12 HUMORCE

我也遇到了这个问题,win11,突然出现的。 报错截图 image config image

1036831050 avatar Feb 18 '24 08:02 1036831050

Bug Report

Any attempt to update the following list of packages results in error:

  • gh
  • git
  • telegram
  • windows-terminal

Current Behavior

Errors with this message: The remote server returned an error: (401) Unauthorized.

Expected Behavior

It should be updated without any error.

Additional context/output

Running both in windows-terminal and command prompt results in following error:

C:\Users\keyrada>scoop update git
git: 2.42.0.2 -> 2.43.0
Updating one outdated app:
Updating 'git' (2.42.0.2 -> 2.43.0)
Downloading new version
The remote server returned an error: (401) Unauthorized.
At C:\Users\keyrada\scoop\apps\scoop\current\lib\install.ps1:111 char:9
+         throw $e
+         ~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], WebException
    + FullyQualifiedErrorId : The remote server returned an error: (401) Unauthorized.
C:\Users\keyrada>scoop update gh
gh: 2.38.0 -> 2.39.2
Updating one outdated app:
Updating 'gh' (2.38.0 -> 2.39.2)
Downloading new version
The remote server returned an error: (401) Unauthorized.
At C:\Users\keyrada\scoop\apps\scoop\current\lib\install.ps1:111 char:9
+         throw $e
+         ~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], WebException
    + FullyQualifiedErrorId : The remote server returned an error: (401) Unauthorized.

System details

Windows version: 10 Enterprise, OS build: 19045.3570

OS architecture: 64bit

PowerShell version:

Major Minor Build Revision 5 1 19041 3570 Additional software: Git

Scoop Configuration

{
    "last_update":  "2023-12-01T04:37:49.0323743+03:30",
    "gh_token":  "github-pat-XXX",
    "scoop_branch":  "master",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop"
}

我重新设置了一下gh_token恢复了,你可以试下

1036831050 avatar Feb 18 '24 08:02 1036831050