Open lipkau opened 4 years ago
I ♥ PS> Invoke-JiraMethod "$(Get-JiraConfigServer)/rest/api/latest/filter/search" Method invocation failed because [System.Net.Http.HttpResponseMessage] does not contain a method named 'GetResponseStream'. At C:\Users\olive\projects\JiraPS\JiraPS\Private\Resolve-ErrorWebResponse.ps1:25 char:13 + $readStream = New-Object -TypeName System.IO.StreamReader ... + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound You cannot call a method on a null-valued expression. At C:\Users\olive\projects\JiraPS\JiraPS\Private\Resolve-ErrorWebResponse.ps1:26 char:13 + $responseBody = $readStream.ReadToEnd() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At C:\Users\olive\projects\JiraPS\JiraPS\Private\Resolve-ErrorWebResponse.ps1:27 char:13 + $readStream.Close() + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Invoke-JiraMethod : Server responsed with NotFound At line:1 char:1 + Invoke-JiraMethod "$(Get-JiraConfigServer)/rest/api/latest/filter/sea ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (:) [Invoke-JiraMethod], RuntimeException + FullyQualifiedErrorId : InvalidResponse.Status404,Invoke-JiraMethod