Swagger response too slow for big swagger documents
See original GitHub issueI have this issue too #173 .
I used this solution "TransformByOcelotConfig" : false
,
this config correctly worked. But now I have a new problem: when calling my Apis into swagger, it’s calling with local IP instead of calling with my domain website name(for example myApp.com/api
). with this config all swagger calling Apis throw with error: ‘failed to fetch’.
{ "UpstreamPathTemplate": "/xxx/api/{everything}", "DownstreamPathTemplate": "/api/{everything}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "xx.xx.xxx.xx" //local IP "Port": xxxxx } ], "SwaggerKey": "myAppKey", "RouteIsCaseSensitive": "false" }
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Swagger UI hangs and become very slow after expanding ...
Hi Team, I have integrated swagger to my API controller. The UI gets hanged once I click to expand any of the endpoint....
Read more >c# - Swagger UI for net core 3.1 api is very slow
See How to export a Swagger JSON/YAML file from Swagger UI. The slowness may be caused by the large file size and/or highly...
Read more >SwaggerUI is Slow – How to speed it up in ASP.Net Core
I'll assume you can set up Swagger and just want to speed it up. Open your startup.cs and go to the UseSwaggerUI() call...
Read more >Generation of the Swagger page takes too long...
The first – your spec is fairly large – around 1MB – the spec is not generated each time so it's really just...
Read more >Lazy Loading | SwaggerHub Documentation
Enable or disable lazy loading (SwaggerHub On-Premise) ; Select Settings on the left. ; Select or unselect Enable Lazy Loading. ; Click Save...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @namnik,
In new version
4.8.0
you can useRemoveUnusedComponentsFromScheme
switchPR #218
Hi @namnik https://github.com/namnik
thanks for your docs. Unfortunately I do not have good news. With a 16MB document, I come across Newonsoft limits. The transition to
System.Text.Json
is currently impossible because it does not allow modification of an existing document. Switching to that would take a lot of time that I don’t have.In your case, a lot of time is spent removing unused components from the schema. If you don’t mind having these components in the resulting documentation, I can make settings that would allow you to turn it off.
Thanks.
On Thu, 20 Jan 2022 at 08:36, Saman Namnik @.***> wrote:
– Prajem pekný zvyšok dňa, Ing. Milan Martiniak