Skip to content
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 crashes browser #3911

Closed
ErliSoares opened this issue Nov 15, 2017 · 3 comments
Closed

swagger crashes browser #3911

ErliSoares opened this issue Nov 15, 2017 · 3 comments

Comments

@ErliSoares
Copy link

I do not understand the reason the json file does not work, it has been validated with an error in the valuer, and it is not CORS problem, the browser simply hangs and the memory consumption of the browser goes to more than giga byte, the json file is only 131kb, not I was able to detect the problem, do you have any idea what it might be?
Sorry for English
swagger_.zip

@heldersepu
Copy link
Contributor

I started breaking down the swagger.json into a smaller version:
http://nhc-noaa.azurewebsites.net/swagger/ui/index?url=http://nhc-noaa.azurewebsites.net/swagger_ErliSoares.json&filter=Api
That one is less than 40K
The problem is that the JS takes to long and the browsers start raising warnings, on my version the browser takes approx 10secs, but after everything renders if we go expand/collapse the models it takes a while to respond

@heldersepu
Copy link
Contributor

Perhaps this issue should be merged into #1919

@shockey
Copy link
Contributor

shockey commented Nov 28, 2017

@heldersepu, indeed.

Closing as a duplicate of #1919.

@ErliSoares, thanks for providing your Swagger definition - we'll use it to test against as we address performance issues 😄

@shockey shockey closed this as completed Nov 28, 2017
@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants