-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Importing OpenApi document fails - Range Error #939
Comments
…omponents, resulting in infinite loops being made within resolveRefs. Solution: Added basic use of Set to store already-traversed items within the OpenAPI spec. Linked to personal use having import problems as well as this issue raised: usebruno#939 (comment) Tested against the API Spec mentioned in the issue both as JSON and YAML.
Closing this issue as it could not be recreated in the latest version of Bruno v1.20.0 Screen.Recording.2024-07-02.at.3.34.18.PM.mov |
Still seeing this issue when importing Jira's OpenAPI spec: https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json?_v=1.7513.0-0.1310.0 I'm running Bruno v1.31.0 Slightly different stack trace here though:
|
+1 |
I am running into this issue as well with this openAPI v3 api import. |
The same issue. v1.38.1 installed via choco on win10
Stack from console
|
What I was trying to do
Import a 1600 line published openAPI document into Bruno
What was supposed to happen
OpenAPI was imported successfully
What happened
UI threw and error saying: Import collection failed. An error occurred while parsing the openAPI collection. Both importing as JSON and converting to YAML and attempting to import run into similar errors.
Additional information
Opening the console, the following error is shown:
BrunoError: An error occurred while parsing the OpenAPI collection
at 772-5e0c4231fc48a067.js:1:25651
at new Promise ()
at ie (772-5e0c4231fc48a067.js:1:24060)
(anonymous) @ 772-5e0c4231fc48a067.js:1
Promise.catch (async)
(anonymous) @ 772-5e0c4231fc48a067.js:1
se @ 772-5e0c4231fc48a067.js:1
onClick @ 772-5e0c4231fc48a067.js:1
Oe @ framework-49f1e091cbf6b261.js:1
Ae @ framework-49f1e091cbf6b261.js:1
(anonymous) @ framework-49f1e091cbf6b261.js:1
Ir @ framework-49f1e091cbf6b261.js:1
Ur @ framework-49f1e091cbf6b261.js:1
(anonymous) @ framework-49f1e091cbf6b261.js:1
ss @ framework-49f1e091cbf6b261.js:1
Le @ framework-49f1e091cbf6b261.js:1
Hr @ framework-49f1e091cbf6b261.js:1
Kn @ framework-49f1e091cbf6b261.js:1
Qn @ framework-49f1e091cbf6b261.js:1
772-5e0c4231fc48a067.js:1 RangeError: Maximum call stack size exceeded
at String.startsWith ()
at e (772-5e0c4231fc48a067.js:1:23724)
at e (772-5e0c4231fc48a067.js:1:23950)
at e (772-5e0c4231fc48a067.js:1:23950)
at e (772-5e0c4231fc48a067.js:1:23950)
at e (772-5e0c4231fc48a067.js:1:23950)
at e (772-5e0c4231fc48a067.js:1:23950)
at e (772-5e0c4231fc48a067.js:1:23922)
at e (772-5e0c4231fc48a067.js:1:23950)
at e (772-5e0c4231fc48a067.js:1:23950)
I've validated the OpenAPI spec on the https://editor.swagger.io/.
OpenAPI spec that causes the issue is published here:
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/inference.json
The text was updated successfully, but these errors were encountered: