-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Schema causing ReDoc to run out of memory #696
Comments
I have done further testing and you can actually get it to fail with just
Specifically what seems to be causing the issue is both
Removing I've tried renaming Hope you can help! |
Thanks for the detailed issue report. |
Thanks @RomanGotsiy I found that the further cause for this is that |
Hi @RomanGotsiy have you made any progress on this? Many thanks |
I have the same issue. When I try to render this spec: https://raw.githubusercontent.com/Picturepark/Picturepark.SDK.DotNet/master/swagger/PictureparkSwagger.json I get this exception when using the cli: When I try to render the docs in Chrome, the Browser crashes. Many thanks |
Any update on this issue? I'm running into the same thing. |
Not really, those issues are hard to debug and fix. It's mainly due to the complexity of the OpenAPI definition (usually when using heavily discriminator) @neotek I will look into your example once I have time |
The same issue with 2,5MB schema:
Moreover, when I set bigger node heap limit I have other issue:
|
same issue |
We experience this issue as well. Swagger: https://contao.github.io/contao-manager/api/swagger.yaml |
I am experiencing this issue as well. I can't share the swagger but after testing on my local I've concluded that this issue is due to bi-directional |
We have a rather large schema that is causing Redoc to fail to render as the browser runs out of memory.
I have tried utilising redoc-cli to bundle but this will run seemingly forever and never complete.
The schema can be found here: https://gist.github.com/AlexRichter/001f64d9c5ac17a8a0bfdb1a771eef71
I have tried creating a minimal use case but can't as I believe the issue is due to the complexity of the schema.
You can fix it by removing some of the
oneOf
anddiscriminator
inCheckResource
. If you only have 3 it will render quickly, up to 5 and it takes ~18 seconds. All of them and it will never complete.Your help is much appreciated!
The text was updated successfully, but these errors were encountered: