-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Maximum call stack size exceeded #189
Comments
I was able to isolate the problem. I have found all cases where the requestOptions.headers = {
Authorization: generateDigestAuthHeader(requestOptions, _digest)
} as I wasn't using any additional options. |
Thanks a lot for the write-up @armpogart! Seems that the merge package isn't maintained terribly regularly, in terms of issues. The cloning system it uses looks to be at fault like you said, so I'll perhaps use something smaller in this library without the need for the 3rd-party one. I don't use any services with Digest auth, so I'll let you know once I've updated this to confirm that it works. Thanks! |
I've removed the merge dependency in #190 - Will release shortly. |
@perry-mitchell Thanks for a quick reply and a fix to the merge issue. I'll try to test the solution as quick as possible. Still the #181 issue with zero length remains. I'll try to dig deeper to find the reason for that behavior and finally resolve the problem in #173. |
Released in 2.10.2 @armpogart |
@armpogart Did you yet have a chance to test the update? As an aside: I've now released version 3.0.0 - both it and 2.x have the fix I mentioned. |
@perry-mitchell I've tested the fix with both versions, and now everything works, thanks! P.S. I mean Closing this issue. |
I was finally debugging #173 issue, and I think I know the reason why that happens, but now when trying to use the library in pure node environment I get
call stack size exceeded
issue from recursion and I can't understand why that happens. Here is all the info that I could find, maybe you will be able to debug it further:Node version:
v12.14.1
package.json file:
index.js file:
and I get:
I'm sure that authentication works, I've tried
client.getDirectoryContents("/some_path/");
and it works and lists all items in directory. The image is there and I'm able to read it and write to other file directly using streams. I've also tried to attach error event handlers to both streams, and there is no any error there.As far as debugging goes, you can see that the issue is in one of your dependencies merge on line 44 the method
Public.clone
which on line 65 again calls itself so recursion happens and maximum call stack size is exceeded. While debugging with breakpoint set there I could see infinitely (not sure as I resumed my app maybe 100 times, before giving up) times app pausing on that breakpoint.Not sure what else I can do. Maybe the node version has problems?
The text was updated successfully, but these errors were encountered: