jpsider / RestPS

Simple ReST Framework for Powershell
MIT License
112 stars 30 forks source link

Error on Write-Log in Invoke-VerifySubject.ps1 #47

Closed accc703 closed 4 years ago

accc703 commented 4 years ago

Just found some error on using "VerifySubject"

2020-05-13 10:03:10 TRACE: Start-RestPSListener: Streaming response is complete.

2020-05-13 10:03:10 TRACE: Start-RestPSListener: Captured incoming request

2020-05-13 10:03:10 TRACE: Start-RestPSListener: Determining VerificationType: 'VerifySubject'

2020-05-13 10:03:11 TRACE: Start-RestPSListener: Executing Invoke-ValidateClient
Write-Log: C:\RestPS\bin\Invoke-VerifySubject.ps1:14
Line |
  14 |              Write-Log -LogFile $Logfile -LogLevel $logLevel -MsgType  …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A positional parameter cannot be found that accepts argument 'testingcert'.

Write-Log: C:\RestPS\bin\Invoke-VerifySubject.ps1:19
Line |
  19 |  …             Write-Log -LogFile $Logfile -LogLevel $logLevel -MsgType  …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A positional parameter cannot be found that accepts argument 'testingcert'.

2020-05-13 10:03:13 TRACE: Start-RestPSListener: Executing Invoke-GetBody

2020-05-13 10:03:13 TRACE: Start-RestPSListener: Determining Method and URL

"testingcert" is my certificate subject. It can be authenticated but found error on console logging stated above.

jpsider commented 4 years ago

new release published to Gallery.