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

The script failed due to call depth overflow. #5

Open
zedkoved opened this issue Jul 4, 2018 · 1 comment
Open

The script failed due to call depth overflow. #5

zedkoved opened this issue Jul 4, 2018 · 1 comment

Comments

@zedkoved
Copy link

zedkoved commented Jul 4, 2018

Received the following error when running GetOciVirtualMachines from within a script I built. Error seems to be non-fatal, as the script continues to execute and does collect the VMs properly.

The script failed due to call depth overflow.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\OnCommand-Insight\OnCommand-Insight.psm1:25340 char:46

  • ... $Uri += "$($Separator)sort=$((Get-Variable 'sort').Value)"
  •                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
    • FullyQualifiedErrorId : CallDepthOverflow
@kopersteny
Copy link

kopersteny commented Jun 11, 2021

OnCommand-Insight Module Version: 4.2.7
Similar issue, but even outside of a script just running Get-OciVirtualMachines.
I was able to get around the error by using "-limit 30000" even though I was not actually limiting my number output rows. The "limit" parameter circumvents whatever is causing the error.

Error:
The script failed due to call depth overflow.
At C:\Program Files\WindowsPowerShell\Modules\OnCommand-Insight\OnCommand-Insight.psm1:25372 char:17

  • ... Get-OciVirtualMachines -fromTime $fromTime -toTime $toTim ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
    • FullyQualifiedErrorId : CallDepthOverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants