mbegan / Okta-PSModule

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

Unable to find type / Encountered error, returning limited or empty set #57

Closed cphillipsWSL closed 2 years ago

cphillipsWSL commented 2 years ago

This module used to work perfectly for me. I can't pinpoint when I started getting this error, but the error is consistent. This same error occurs for any commands within the okta module.

I have updated my okta_orgs.ps1 script with the TLS1.2 update and still same issue.

Any help is greatly appreciated as this module has greatly increased my productivity.

Below is a verbose output of the Oktagetactiveapps command

oktagetactiveapps -verbose VERBOSE: Req-Hdr: Authorization -> SSWS xXxXxXxxXxxXxXxXxxXx VERBOSE: Req-Hdr: Accept-Encoding -> deflate,gzip VERBOSE: Req-Hdr: Accept-Charset -> ISO-8859-1,utf-8 VERBOSE: Req-Hdr: Accept-Language -> en-US VERBOSE: Req-Hdr: Content-Type -> application/json VERBOSE: Req-Hdr: User-Agent -> Okta-PSModule/2.4 (5.1.19041.1320) (UnknownPlatform) (UnknownOS) VERBOSE: GET https://wsl.okta.com/api/v1/apps?limit=500&filter=status eq "ACTIVE" with 0-byte payload WARNING: Unable to find type [Microsoft.PowerShell.Commands.HttpResponseException]. 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

cphillipsWSL commented 2 years ago

Issued resolved after thorough research. Fix was okta api token was expired. After renewal, everything worked. This module is a life-saver