You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The apps are oidc_client apps, so there are a lot of properties. I can't seem to find where depth comes into play, but properties do go 4 levels deep. Spitting out the object and passing the same json to the API works.
Remove-NullProperties: C:\Users...\Documents\PowerShell\Modules\Okta.PowerShell\1.0.3\Client\JsonHelper.ps1:40:46
Line |
40 | … $NewObject[$Property.Name] = Remove-NullProperties $Property.Value
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The script failed due to call depth overflow.
Attaching a sample json, which has only been modified to remove identifiers. app.json
The text was updated successfully, but these errors were encountered:
In the meantime and considering the Remove-NullProperties function is failing, maybe you can try passing the IncludeNullValuesswitch when calling Update-OktaApplication so it skips the Remove-NullProperties logic. FWIW all public functions expose the IncludeNullValues switch. Let me know if this helps in the short term. Thank you!
That worked, didn't notice that parameter. It would still be ideal to be able to remove the null properties to make the payload smaller. But definitely less urgent now.
Just trying to get an app, not even make any changes and then update it never succeeds.
$appLabel = "test from PS"
$apps = Invoke-OktaListApplications -Limit 1 -Q $appLabel
$existingApp = $apps[0]
$resultApp = Update-OktaApplication -Application $existingApp -AppId $existingApp.id
The apps are oidc_client apps, so there are a lot of properties. I can't seem to find where depth comes into play, but properties do go 4 levels deep. Spitting out the object and passing the same json to the API works.
Remove-NullProperties: C:\Users...\Documents\PowerShell\Modules\Okta.PowerShell\1.0.3\Client\JsonHelper.ps1:40:46
Line |
40 | … $NewObject[$Property.Name] = Remove-NullProperties $Property.Value
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The script failed due to call depth overflow.
Attaching a sample json, which has only been modified to remove identifiers.
app.json
The text was updated successfully, but these errors were encountered: