-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Issue-BugSomething isn't workingSomething isn't working
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
Register-PSResourceRepository -Name powershell-test -Uri "https://pkgs.dev.azure.com/xxx/_packaging/powershell-test/nuget/v3/index.json" -Trusted
$cred = Get-Credential 'pat'
Find-PSResource -Name Pester -Repository powershell-test -Credential $cred
Expected behavior
Module is found
Actual behavior
Find-PSResource: SendV3RequestAsync(): Error occured while trying to retrieve response: Response status code does not indicate success: 404 (Not Found).
Error details
Exception :
Type : System.Net.Http.HttpRequestException
TargetSite :
Name : MoveNext
DeclaringType : Microsoft.PowerShell.PowerShellGet.Cmdlets.V3ServerAPICalls+<SendV3RequestAsync>d__39, PowerShellGet, Version=3.0.20.0, Culture=neutral, PublicKeyToken=null
MemberType : Method
Module : PowerShellGet.dll
Message : SendV3RequestAsync(): Error occured while trying to retrieve response: Response status code does not indicate success: 404 (Not Found).
Source : PowerShellGet
HResult : -2146233088
StackTrace :
at Microsoft.PowerShell.PowerShellGet.Cmdlets.V3ServerAPICalls.SendV3RequestAsync(HttpRequestMessage message, HttpClient s_client)
at Microsoft.PowerShell.PowerShellGet.Cmdlets.V3ServerAPICalls.HttpRequestCall(String requestUrlV3, ExceptionDispatchInfo& edi)
TargetObject : Microsoft.PowerShell.PowerShellGet.Cmdlets.FindHelper
CategoryInfo : InvalidOperation: (Microsoft.PowerShel….Cmdlets.FindHelper:FindHelper) [Find-PSResource], HttpRequestException
FullyQualifiedErrorId : FindNameFail,Microsoft.PowerShell.PowerShellGet.Cmdlets.FindPSResource
InvocationInfo :
MyCommand : Find-PSResource
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 14
Line : Find-PSResource -Name Pester -Repository powershell-test -Credential $cred
PositionMessage : At line:1 char:1
+ Find-PSResource -Name Pester -Repository powershell-test -Credential …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
InvocationName : Find-PSResource
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 3.0.20 beta20 PowerShellGet {Find-PSResource, Get-PSResource, Get-PSResourceRepository, Get-PSScriptFileInfo…}
Name Value
---- -----
PSVersion 7.3.3
PSEdition Core
GitCommitId 7.3.3
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
GSDragoon
Metadata
Metadata
Assignees
Labels
Issue-BugSomething isn't workingSomething isn't working