-
Notifications
You must be signed in to change notification settings - Fork 37
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
Null Valued Expression #40
Comments
Assuming you've edited the values for $DuoDefaultOrg and $DuoOrgs in Duo_org.ps1 correctly, the API calls might be failing due to TLS version mismatch Add this code block to your Duo_org.ps1 or your $PROFILE script to force this module to use TLS1.2
Ref: https://github.com/mbegan/Duo-PSModule/blob/master/README.md Good Luck |
Just wanted to post an update in case anyone else comes across this. I was able to get it working by going to the files and adding myself with Full Permissions under the security tab for all 3 files in the module. I installed the module under c:\program files\Windows Powershell\ because I wanted it accessible to all users on the system, but that folder has very strict permissions and it seems like it was causing some type of issue. Either way, everything is working now. |
If you create the Duo_org.ps1 on a different system than the one you are running it on, you will need to unblock the script first. You can do that by going to file properties, check the "Unblock" box at the bottom and click ok, or you can use Good Luck |
For me, solving this error required me to either run the Duo_org.ps1 file before using functions from this module or Import-Module Duo_org.ps1 in my main script before importing and calling functions from this module. |
Trying to get this Module working for the first time and regardless of what execution policy I run under I'm getting the following error when running duoGetUser
PS C:\Program Files\WindowsPowerShell\Modules\Duo> duoGetUser | select *
_duoBuildCall : You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\Duo\Duo.psm1:591 char:20
Powershell Version is 5.1
Import-Module Duo completes without errors and I was even able to run the command to encrypt by secret key after importing the module. It looks like any command I run that actually utilizes the API returns this error.
The text was updated successfully, but these errors were encountered: