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

Error: You cannot call a method on a null-valued expression. #304

Open
tall27 opened this issue Oct 9, 2024 · 0 comments
Open

Error: You cannot call a method on a null-valued expression. #304

tall27 opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tall27
Copy link

tall27 commented Oct 9, 2024

Environment

Full Operating System: win 11
VenafiPS version: 6.5
PowerShell version: 7.4.5
TLSPDC version (if applicable):

Steps to reproduce

PS C:> $cred=get-credential
PS C:> New-VcMachineCommonKeystore -Name 'NGINX Server 03' -Owner 'Network team' -Credential $cred -SshPassword -Hostname '10.0.1.141' -PassThru
InvalidOperation:
Line |
25 | … if ( $VenafiSessionNested.GetType().Name -in 'PSCustomObject', …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.

machineId : 401b0100-8672-11ef-bbc9-f716a8c02ac0
testConnection :
companyId : 220e0250-c0ae-11ee-afa6-e774853f8339
name : NGINX Server 03
pluginId : 0e565e41-dd31-11ec-841d-a7d91c5a907c
integrationId : 401a3c51-8672-11ef-bb5a-8c380b5ae82f
edgeInstanceId : 5d8e7e00-276e-11ef-8634-ebdcba0e0fd1
creationDate : 10/9/2024 2:11:13 PM
modificationDate : 10/9/2024 2:11:13 PM
status : UNVERIFIED
owningTeamId : 4443a6b0-fcf7-11ee-ae80-33457f188e37

Expected behavior

Actual behavior

machine is created, but PS shows the error.

Screenshots

@gdbarron gdbarron self-assigned this Oct 10, 2024
@gdbarron gdbarron added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants