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

Not so small application/json response body makes browser hung up? #167

Closed
ykpark79 opened this issue Jul 1, 2020 · 2 comments
Closed
Labels
question Further information is requested

Comments

@ykpark79
Copy link

ykpark79 commented Jul 1, 2020

I am currently implementing GET REST API with query parameters which gives large amount of JSON response body.
(it is not significantly large but not so small)
It return like below after I run "try it out.
image
Which works okay.
Response from server doesn't take so much time to send back the response. (below 200ms)

When scrolling down on "response payload" section on the document page, then if I want to move other area of the document,
browser is hung up for around 4 seconds.

Without clicking or scrolling in the "response payload", clicking other namespace or API works okay.
But this only happens when my mouse focused into the "response payload" section in the document page.

Any idea or help?
Is there any limit in RestX to display in response payload section?

@ykpark79 ykpark79 added the question Further information is requested label Jul 1, 2020
@vincent-heatseekr
Copy link

vincent-heatseekr commented Jul 1, 2020

In a different life I think I remember a similar sort of issue, but the documentation wasn't generated with Flask-restx. Think it's caused by the implementation of the Swagger JS library.

@ykpark79
Copy link
Author

ykpark79 commented Jul 1, 2020

@vincent-heatseekr
thank you for comment. As you pointed out, i found similar issue in Swagger JS as below.
swagger-api/swagger-ui#3832

@ykpark79 ykpark79 closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants