CreateItem & UpdateItem Firing "Max call stack size exceeded"
See original GitHub issueFirst off - great module! I was able to tweak it to get a lot of functions working with EWS correctly (including FindItem
, GetItem
, Subscribe
, GetEvents
, ResolveNames
, and also Impersonation
). It only took some minor tweaks to the code, but for the most part the xml2js & node-soap/wsdl.js handle the functions perfectly. That is until CreateItem (or UpdateItem). For some reason the following error fires:
if (Array.isArray(parameterTypeObj.$lookupTypes) && parameterTypeObj.$lookupTypes.length) { ^
RangeError: Maximum call stack size exceeded at Function.isArray (native) at WSDL.findChildSchemaObject (/…/server/node-ews-rv/node-soap/lib/wsdl.js:1822:12) at WSDL.findChildSchemaObject (/…/server/node-ews-rv/node-soap/lib/wsdl.js:1862:20)
I can’t for the life of me figure out what about these functions causes the error. I know the call stack exceeding has to do with (most likely) recursive functions, and .findChildSchemaObject does fire within itself in WSDL.js, but this has no effect on any other EWS operations but CreateItem & UpdateItem.
Any thoughts?
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (4 by maintainers)
FYI: I just fixed this issue. I did so by using node-soap’s
$xml
to manually set all the “children” ofCreateItem
with a string. Obviously it’d be better if we could just use the JSON args object, but for some reason the children throw that Max call error.I get exactly same error. “unable to verify the first certificate” But when I use patch then I get “NTLM StatusCode 401: Unauthorized.”