You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During building a local development environment, downloading dependencies fails with:
ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users***\AppData\Local\Temp\tmp71BD.tmp.psm1:10 char:53
+ $errorDetails = $errorRecord.ErrorDetails | ConvertFrom-Json
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFrom
JsonCommand
The reason is that since 2.24 gh auth status returns an additional line which is unexpected by AL-Go and so included in the token and consequently lets authentication fail.
We have implemented a workaround: $_.authTokenSecret = $authstatus.SubString($authstatus.IndexOf('Token: ')+7).Split(" ")[0].Trim() Maybe that or something better can be added?
The text was updated successfully, but these errors were encountered:
During building a local development environment, downloading dependencies fails with:
ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users***\AppData\Local\Temp\tmp71BD.tmp.psm1:10 char:53
+ $errorDetails = $errorRecord.ErrorDetails | ConvertFrom-Json
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFrom
JsonCommand
The reason is that since 2.24 gh auth status returns an additional line which is unexpected by AL-Go and so included in the token and consequently lets authentication fail.
We have implemented a workaround: $_.authTokenSecret = $authstatus.SubString($authstatus.IndexOf('Token: ')+7).Split(" ")[0].Trim() Maybe that or something better can be added?
The text was updated successfully, but these errors were encountered: