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 #799

Closed
felipeloha opened this issue Aug 9, 2022 · 9 comments
Closed

RangeError: Maximum call stack size exceeded #799

felipeloha opened this issue Aug 9, 2022 · 9 comments
Labels
question Further information is requested

Comments

@felipeloha
Copy link

Describe the bug
RangeError: Maximum call stack size exceeded when a recursion is present in the spec

To Reproduce
Steps to reproduce the behavior:

  1. Given a yml file that references itself
  2. run redocly preview-docs
  3. the error
    at tn (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:8:647081)
    at new Nc (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:68016)
    at https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:65200
    at Array.map (<anonymous>)
    at Pc (https://cdn.redoc.ly/r```

**Expected behavior**
The docs are rendered properly

**Logs**
```RangeError: Maximum call stack size exceeded
    at tn (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:8:647081)
    at new Nc (https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:68016)
    at https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js:39:65200
    at Array.map (<anonymous>)
    at Pc (https://cdn.redoc.ly/r```

**OpenAPI definition**
"openapi": "3.0.0",

**Redocly Version(s)**
1.0.0-beta.105

**`Node.js` Version(s)**
18.2.0

@felipeloha
Copy link
Author

sample file: sample.json.zip

@tatomyr
Copy link
Contributor

tatomyr commented Aug 9, 2022

Hi @felipeloha,

Could you check the sample file? I tried to run the command with it and cannot reproduce your case.

@tatomyr tatomyr added the question Further information is requested label Aug 9, 2022
@felipeloha
Copy link
Author

it breaks on my machine
here attached the command with the version and the result on the browser

Screenshot 2022-08-09 at 11 56 39
Screenshot 2022-08-09 at 11 57 37

@tatomyr
Copy link
Contributor

tatomyr commented Aug 9, 2022

Ah, I see. This must be a Redoc issue, most likely related to this one.

@felipeloha
Copy link
Author

yes i was thinking the same

@tatomyr
Copy link
Contributor

tatomyr commented Aug 9, 2022

I'm closing the issue since it should be resolved on Redoc's side. No need to update anything in Redocly CLI.
Should it not get resolved, feel free to reopen the issue.

@tatomyr tatomyr closed this as completed Aug 9, 2022
@felipeloha
Copy link
Author

@tatomyr
I dont understand the relation between the versions of redoc and redocly.
which redocly cli version should I use to have Redocly/redoc#2114 fixed?

@tatomyr
Copy link
Contributor

tatomyr commented Aug 19, 2022

Hi @felipeloha,

Redocly CLI uses the latest version of Redoc. The reason it doesn't get fixed for you might be some caching. Could you check this in the incognito mode?

@felipeloha
Copy link
Author

@tatomyr I didnt know if we had to update the cli. we tried it out and everything is working. thanks

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

No branches or pull requests

2 participants