Skip to content
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

RangeError: Maximum call stack size exceeded when running my project #130

Open
MichaelSu1983 opened this issue Aug 29, 2017 · 3 comments
Open

Comments

@MichaelSu1983
Copy link

I have a large swagger file about 100 endpoints, and create swaggerize express project. when I run node server.js, I got this error. Even I removed the enpoints in swagger file, but it does not help.

what is the reason for this?

`node_modules/hoek/lib/index.js:24
seen = { orig: [], copy: [] };
^

RangeError: Maximum call stack size exceeded
at Object.exports.clone (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/hoek/lib/index.js:24:5)
at internals.String.internals.Any.clone (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/joi/lib/any.js:114:24)
at internals.String.internals.Any.allow (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/joi/lib/any.js:269:20)
at regularString (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/enjoi/lib/enjoi.js:229:39)
at string (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/enjoi/lib/enjoi.js:213:29)
at resolvetype (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/enjoi/lib/enjoi.js:95:29)
at resolve (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/enjoi/lib/enjoi.js:23:20)
at /Users/msu/swagger-mock/confluence-swagger-mock/node_modules/enjoi/lib/enjoi.js:144:25
at Array.forEach (native)
at resolveproperties (/Users/msu/swagger-mock/confluence-swagger-mock/node_modules/enjoi/lib/enjoi.js:139:41)`

@mbarsil
Copy link

mbarsil commented Jul 28, 2019

Hi @MichaelSu1983 , did you manage to solve this?

@MichaelSu1983
Copy link
Author

No, I just abandon the attempt for doing it. Is there any update on it?

@jsdevel
Copy link

jsdevel commented Jul 29, 2019

@MichaelSu1983 one way to solve this is to use https://github.com/kogosoftwarellc/open-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants