mbegan / Okta-PSModule

Okta API Powershell Wrapper Module
Other
102 stars 31 forks source link

Have a similar issue #50

Open 12dkhcrap opened 3 years ago

12dkhcrap commented 3 years ago

I am getting an error when trying to connect to okta environments inside the customer's network. Suspect some type of firewall blockage. this works remotely on my laptop using the okta github configuration.

Ran this to get more infor

PS C:\windows\system32> $error.Clear()

PS C:\windows\system32> $oktaVerbose True

PS C:\windows\system32> oktaGetUserbyID -oOrg prev -uid cjones@plicards.com -Verbose

$Error[0..($Error.count)]

PS C:\windows\system32> oktaGetUserbyID -oOrg prev -uid cjones@plicards.com -Verbose VERBOSE: GET https://plicards.okta.com//api/v1/users/cjones@plicards.com with 0- byte payload WARNING: Unable to find type [Microsoft.PowerShell.Commands.HttpResponseExceptio n]. WARNING: Encountered error, returning limited or empty set VERBOSE: This Page returned: 0, we've seen: 0 results so far VERBOSE: 0 results returned, i predict an empty page coming up, lets skip it VERBOSE: We see no or an invalid next link of: False

PS C:\windows\system32> $Error[0..($Error.count)] Unable to find type [Microsoft.PowerShell.Commands.HttpResponseException]. At C:\windows\system32\WindowsPowerShell\v1.0\Modules\okta\Okta.psm1:491 char:38

Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send. At C:\windows\system32\WindowsPowerShell\v1.0\Modules\okta\Okta.psm1:473 char:29