-
Notifications
You must be signed in to change notification settings - Fork 33
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
Swagger UI not able to load #3089
Comments
@kyyberi I fixedit via UI. Don't know what happened but I've got e-mail notification about error on the server side
and
Looks like the Swagger didn't parse the file and fall down with stack overflow |
I'm not able to get it to load. |
Problem still exists. This API is going to real use soon in one of our Smart city cases. |
Same thing locally.
Also getting in console:
|
Used URL https://raw.githubusercontent.com/Metatavu/kunta-api-spec/master/swagger.yaml @ http://petstore.swagger.io/. Perfectly works. |
@55 that was the message from client as well. |
Hi @55 i have checked this issue on "Google Chrome" and "mozilla" and i did't get this type of error . Please review below gifs |
@marla-singer any ideas why it worked at http://petstore.swagger.io? |
@55 Nope. It needs detailed investigation |
@krashna-deligence interesting, what OS were you using? |
ubantu 16.04 |
Investigation report I thought the problem comes from library "swagger-parser":
The error trace displays that the problem comes from EJSON I tried to catch the error with "Maximum call stack size exceeded" but no success. The circular reference is the invalid type of JSON and EJSON can't work as expected. Didn't think up any good idea about how to fix it or notice a user about this error |
Tested in https://staging.apinf.io (release 0.52). The problem exists there with APIs having swagger documentation. screenshot of the exception caught is attached. cc @saransh-dev |
Yes, we need to check |
@preriasusi - I cannot reproduce this on apinf.io, which is where the original error was first found. The later comments on this bug report are referring to another bug which was reported and fixed in another report. Please check, and if you agree, close this issue. |
Thanks, closing.. |
Steps to Reproduce:
Outcome:
Expected Behavior:
Load SwaggerUI
Environment:
Mac 10.12.6 , Chrome browser (l61.0.3163.100), APInf production site (https://apinf.io)
The text was updated successfully, but these errors were encountered: