Swagger-ui just hangs on load

Hi,
when loading our openapi docs in swagger it just hangs.
If I try to open someone else it works.

https://api.bookmore.com/openapi

When i try to open our docs on another swagger ui it works.
I have upgraded servicestack to latest release but still issues

It’s not hanging and returns successfully for me. Even if it did hang no one’s going to be able to provide any help without any information. When reporting issues please provide as much necessary context to give someone some chance to be able to identify the issue. i.e. think about what information you would want to know about if someone sent this issue to you.

The ServiceStack Issues Page outlines how to submit good issues.

FYI a 1.6MB metadata download for ~360 APIs is getting quite large, your issues are likely going to be resource limitations. You may want to consider splitting your APIs over multiple Apps so they’re them more manageable.

Hi, for me it hangs and for other persons as well trying.

We are running on Azure with high resources.
You can test it here

Regards Kristian

The page comes back fine:

$ curl https://api.bookmore.com/swagger-ui/

But the browser hangs trying to render it because it’s too large. You’d need to split it into smaller chunks to make it more manageable, either by splitting your APIs into multiple app hosts or you could manually split the /openapi JSON document in multiple .json documents where you could load them individually:

But if it try to load my openai document in another swagger it loads in a few seconds without any problems

https://petstore.swagger.io wiht the url https://api.bookmore.com/openapi

This uses a different version of the Swagger UI which has since been rewritten in React.

To use OpenApi v3 your App would need to switch to Endpoint Routing and change to use AspNetCore.OpenApi and Swagger Gen:

https://docs.servicestack.net/openapi

Once configured to use Endpoint Routing you can then use the mix tool to apply the openapi3 Startup Configuration with:

x mix openapi3