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.

CreateItem & UpdateItem Firing "Max call stack size exceeded"

See original GitHub issue

First 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:closed
  • Created 8 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
FiveOneDigitalcommented, Feb 18, 2016

FYI: I just fixed this issue. I did so by using node-soap’s $xml to manually set all the “children” of CreateItem 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.

0reactions
beslacommented, Oct 14, 2016

I get exactly same error. “unable to verify the first certificate” But when I use patch then I get “NTLM StatusCode 401: Unauthorized.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript RangeError: Maximum Call Stack Size Exceeded
The RangeError: Maximum call stack size exceeded is thrown when a function call is made that exceeds the call stack size. This can...
Read more >
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >
Deal With “Maximum Call Stack Size Exceeded” in JavaScript
Dealing with the “Maximum call stack size exceeded” error is easy. All you have to do is avoid using the spread operator or...
Read more >
RangeError: Maximum call stack size exceeded #12804
TypeScript Version: 2.1.4 tsc crashes with RangeError: Maximum call stack size exceeded Code I managed to repro with: install latest aws-sdk ...
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