Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find-VdcCertificate -CountOnly doesn't work #309

Closed
wilddev65 opened this issue Dec 2, 2024 · 0 comments · Fixed by #310
Closed

Find-VdcCertificate -CountOnly doesn't work #309

wilddev65 opened this issue Dec 2, 2024 · 0 comments · Fixed by #310
Assignees

Comments

@wilddev65
Copy link
Collaborator

Environment

Full Operating System: Windows 11
VenafiPS version: 6.5.2
PowerShell version: 5.1
TLSPDC version (if applicable): 24.1

Steps to reproduce

Find-VdcCertificate -Path $Path -CountOnly

Expected behavior

Returns count of certificates

Actual behavior

New-HttpQueryString : Cannot bind argument to parameter 'Uri' because it is an empty string.
At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\6.5.2\VenafiPS.psm1:11224 char:52

  •             $newUri = New-HttpQueryString -Uri $uri -QueryParamet ...
    
  •                                                ~~~~
    
    • CategoryInfo : InvalidData: (:) [New-HttpQueryString], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,New-HttpQueryString

Invoke-WebRequest : Cannot validate argument on parameter 'Uri'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\6.5.2\VenafiPS.psm1:11281 char:58

  • ... $verboseOutput = $($response = Invoke-WebRequest @params -ErrorA ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Invoke-WebRequest], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
@gdbarron gdbarron self-assigned this Dec 3, 2024
gdbarron pushed a commit that referenced this issue Dec 3, 2024
@gdbarron gdbarron linked a pull request Dec 3, 2024 that will close this issue
gdbarron added a commit that referenced this issue Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants