The reader's MaxDepth of 64 has been exceeded
See original GitHub issuePrerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
PowerShell 7.2.0 (The error does not appear with PowerShell 7.0 LTS or with 7.1.5.) Install VMware PowerCLI Import Module: https://github.com/vmware/PowerCLI-Example-Scripts/blob/master/Modules/Backup-VCSA/Backup-VCSA.psm1 Connect-CisServer Get-VCSABackupJobs
Expected behavior
Receive information from PowerCLI API.
The error does not appear with PowerShell 7.0 LTS or with 7.1.5.
Actual behavior
The reader's MaxDepth of 64 has been exceeded.
Error details
Get-CisService: 12.11.2021 17:19:49 Get-CisService One or more errors occurred. (One or more errors occurred. (The reader's MaxDepth of 64 has been exceeded. Path
'result.output.STRUCTURE['com.vmware.vapi.metadata.metamodel.component_data'].info.STRUCTURE['com.vmware.vapi.metadata.metamodel.component_info'].packages[7].STRUCTURE.map-entry.value.STRUCTURE['com.vmware.vapi.metadata.metamodel.packa
ge_info'].services[0].STRUCTURE.map-entry.value.STRUCTURE['com.vmware.vapi.metadata.metamodel.service_info'].structures[6].STRUCTURE.map-entry.value.STRUCTURE['com.vmware.vapi.metadata.metamodel.structure_info'].fields[5].STRUCTURE['co
m.vmware.vapi.metadata.metamodel.field_info'].type.STRUCTURE['com.vmware.vapi.metadata.metamodel.type'].generic_instantiation.OPTIONAL.STRUCTURE['com.vmware.vapi.metadata.metamodel.generic_instantiation'].element_type.OPTIONAL.STRUCTUR
E['com.vmware.vapi.metadata.metamodel.type'].generic_instantiation.OPTIONAL.STRUCTURE['com.vmware.vapi.metadata.metamodel.generic_instantiation'].map_value_type.OPTIONAL.STRUCTURE['com.vmware.vapi.metadata.metamodel.type'].generic_inst
antiation.OPTIONAL.STRUCTURE['com.vmware.vapi.metadata.metamodel.generic_instantiation'].map_value_type.OPTIONAL.STRUCTURE['com.vmware.vapi.metadata.metamodel.type'].generic_instantiation.OPTIONAL.STRUCTURE['com.vmware.vapi.metadata.me
tamodel.generic_instantiation'].element_type', line 1, position 567214.))
Get-CisService: 12.11.2021 17:19:49 Get-CisService CisService with name 'com.vmware.appliance.recovery.backup.job' was not found using the specified filter(s).
Write-Error: Cannot bind argument to parameter 'Exception' because it is null.
Environment data
Debian 10 amd64
PS /usr/lib/zabbix/externalscripts> $PSVersionTable
Name Value
---- -----
PSVersion 7.2.0
PSEdition Core
GitCommitId 7.2.0
OS Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Getting "The reader's MaxDepth of 64 has been exceeded" ...
However at some level I am getting following error while parsing a JSON string into an object: The reader's MaxDepth of 64 has...
Read more >The reader's MaxDepth of 64 has been exceeded when ...
Unhandled exception. System.AggregateException: One or more errors occurred. (The reader's MaxDepth of 64 has been exceeded.
Read more >"MaxDepth of 64 has been exceeded" while adding more ...
An error has occurred. The reader's MaxDepth of 64 has been exceeded. Any option to set max depth in .net 4.8? Screenshot given...
Read more >NPrinting Preview and Publish Task Error The reade...
ERROR: Newtonsoft.Json.JsonReaderException: The reader's MaxDepth of 64 has been exceeded; Example of error when seen in the NPrinting Designer ...
Read more >MaxDepth setting
MaxDepth setting to constrain JSON to a maximum depth when deserializing. ... Message); // The reader's MaxDepth of 2 has been exceeded.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Opened issue: https://github.com/vmware/PowerCLI-Example-Scripts/issues/494
@daxian-dbw Thank you very much for reviewing my issue. Although I’m not sure how to open an issues for VMware’s PowerCLI, I didn’t found a public bug tracker. I have the feeling that the example script repo is not the right place, as the issue is not with the example scripts, but with the PowerCLI commands itself (as far as I can tell). EDIT: I opened an official VMware support request as per: https://blogs.vmware.com/PowerCLI/2017/08/powercli-support-breakdown.html