`Maximum call stack size exceeded` when importing OpenAPI spec
See original GitHub issueExpected Behavior
I downloaded an odata service document from the provider.
I used odata-openapi to convert it to an OpenAPI JSON spec.
I import the file and expect to have a collection of usable requests.
A zipped version of the generated JSON is attached. ln_openapi_from_odata.zip
For what it is worth, Postman is able to import this file.
(edit: I am able to export from postman and use postman2openapi to create a yaml that insomnia will import)
Actual Behavior
I import the file and get a crash report:
RangeError: Maximum call stack size exceeded
at generateParameterExample (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:399:34)
at object (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:415:45)
at generateParameterExample (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:452:16)
at array (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:423:27)
at generateParameterExample (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:452:16)
at object (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:415:45)
at generateParameterExample (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:452:16)
at array (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:423:27)
at generateParameterExample (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:452:16)
at object (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/insomnia-importers/dist/src/importers/openapi-3.js:415:45)
Reproduction Steps
- unzip the json file
- import into insomnia
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
Version: Insomnia 2022.2.1 Release date: 3/21/2022 OS: Darwin arm64 21.4.0 Electron: 17.1.0 Node: 16.13.0 V8: 9.8.177.11-electron.0 Architecture: arm64
Insomnia Version
2022.2.1
What operating system are you using?
macOS
Operating System Version
macOS Monterey 12.3.1 (21E258) (m1)
Installation method
download from insomnia.rest
Last Known Working Insomnia version
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[Bug] Maximum call stack size exceeded · Issue #1367 - GitHub
I'm seeing this issue in 2021.3.0 - "Maximum call stack size exceeded" when importing a OpenAPI 3.0 spec file (same issue when trying...
Read more >Insomnia failing with Maximum call stack size exceeded when ...
I am having swagger ui for my application and when I try to import the same to insomnia rest client I am getting...
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 >RangeError: Maximum call stack size exceeded | Vue Forums
Unable to get the schedule component to work, I'm getting a RangeError: Maximum call stack size exceeded. I have followed the demo project...
Read more >json-schema-ref-parser - Bountysource
jsonSchemaRefParser.dereference('https://api.apis.guru/v2/specs/bungie. ... Maximum call stack size exceeded with self-referencing objects on .resolve $ 0.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This has been fixed here btw: https://github.com/Kong/insomnia/releases/tag/core%402022.3.0-beta.4
If you use mac, the version to download is this one: Insomnia.Core-2022.3.0-beta.4.dmg
@csprl-nowigence we are aware of this issue and currently working on it (also please feel free to share your thoughts too). Thank you for re-surfacing it! We love this collaboration. It only helps us improve!