Closed alerickson closed 1 year ago
Register-PSResourceRepository -name test2 -Uri "https://<>.jfrog.io/artifactory/api/nuget/v3/nuget/index.json"
Find-PSResource "test_module" -Repository test2 -Verbose -Debug
Error with unauthorized credentials.
Find-PSResource: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
Exception : Type : System.Text.Json.JsonReaderException Message : '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. TargetSite : Name : ThrowJsonReaderException DeclaringType : System.Text.Json.ThrowHelper, System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 MemberType : Method Module : System.Text.Json.dll Source : System.Text.Json HResult : -2146233088 StackTrace : at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Microsoft.PowerShell.PSResourceGet.Cmdlets.V3ServerAPICalls.GetJsonElementArr(String request, String propertyName, Int32& totalHits, ErrorRecord& errRecord) TargetObject : Microsoft.PowerShell.PSResourceGet.Cmdlets.V3ServerAPICalls CategoryInfo : InvalidResult: (Microsoft.PowerShel…ts.V3ServerAPICalls:V3ServerAPICalls) [Find-PSResource], JsonReaderException FullyQualifiedErrorId : GetResponsesFromRegistrationsResourceFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource InvocationInfo : MyCommand : Find-PSResource ScriptLineNumber : 1 OffsetInLine : 1 HistoryId : 16 Line : Find-PSResource "test_module" -Repository test2 -Verbose -Debug PositionMessage : At line:1 char:1 + Find-PSResource "test_module" -Repository test2 -Verbose -Debug + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InvocationName : Find-PSResource CommandOrigin : Internal ScriptStackTrace : at <ScriptBlock>, <No file>: line 1 PipelineIterationInfo :
ModuleType Version PreRelease Name ExportedCommands ---------- ------- ---------- ---- ---------------- Binary 0.9.0 rc1 Microsoft.PowerShell.PSResourceGet {Find-PSResource, Get-InstalledPSResource, Get-PSReso… Name Value ---- ----- PSVersion 7.3.7 PSEdition Core GitCommitId 7.3.7 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
Note: I think the issue here is that the feed does not exist, but this is not the correct error output
Prerequisites
Steps to reproduce
Register-PSResourceRepository -name test2 -Uri "https://<>.jfrog.io/artifactory/api/nuget/v3/nuget/index.json"
Find-PSResource "test_module" -Repository test2 -Verbose -Debug
Expected behavior
Actual behavior
Error details
Environment data
Visuals