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.

`Maximum call stack size exceeded` when importing OpenAPI spec

See original GitHub issue

Expected 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

  1. unzip the json file
  2. import into insomnia

Is there an existing issue for this?

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerluancommented, Apr 22, 2022

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

0reactions
marckongcommented, May 31, 2022

@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!

Read more comments on GitHub >

github_iconTop 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 >

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