Closed rschmidt2 closed 4 years ago
Now, it will not do it even after a reboot. I can do get-jiraserver but anything that requires authorization fails with the same error.
remove-module jiraps update-module jiraps import-module jiraps -force $Global:loginName = cat c:\scripts\myuseremail.txt $Global:password = cat c:\scripts\tokenpassword.pwd | convertto-securestring $Global:cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $loginName, $password New-JiraSession -Credential $Global:cred
And then the error about all the null values. But I checked and my input values have data in them including $cred. My password is the token password.
Resolve-DefaultParameterValue : Cannot bind argument to parameter 'Reference' because it is null. At C:\Program Files\WindowsPowerShell\Modules\jiraps\2.12.5\JiraPS.psm1:3215 char:78 Cannot index into a null array. At C:\Program Files\WindowsPowerShell\Modules\jiraps\2.12.5\JiraPS.psm1:3222 char:9 You cannot call a method on a null-valued expression. At C:\Program Files\WindowsPowerShell\Modules\jiraps\2.12.5\JiraPS.psm1:3266 char:13
I used: $cred.UserName + " : " + $cred.GetNetworkCredential().Password and my values are indeed correct.
I even created a second API Token and tried that. Same error.
It was back to working fine for a few sessions this afternoon. Now it is back to giving the error again. No change to the code.
Description
Steps To Reproduce
Expected behavior
Screenshots
Your Environment
Possible Solution