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.

RangeError: Maximum call stack size exceeded

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
felipelohacommented, Aug 24, 2022

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

0reactions
tatomyrcommented, 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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Uncaught RangeError: Maximum call stack size exceeded
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >
RangeError: Maximum call stack size exceeded
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >
RangeError: Maximum call stack size exceeded in JavaScript
The "RangeError: Maximum call stack size exceeded" error occurs when a function is called so many times that the invocations exceed the call...
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