question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The reader's MaxDepth of 64 has been exceeded

See original GitHub issue

Prerequisites

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
daxian-dbwcommented, Nov 12, 2021
1reaction
xenadmincommented, Nov 15, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found