-
Notifications
You must be signed in to change notification settings - Fork 678
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 UI page not rendering properly. #685
Comments
Either jQuery fails to load or your iisexpress is hosed. What's the first error? It's not included in the screenshot. What does the Network tab look like? |
Looks like IIS or Chrome is not able to download your scripts. What does jquery-1-8-0-min-js look like when you open it in a new tab? |
@sstrange Were you able to get this resolved? I am having the same issue except it can't find any of the referenced resources in the index.html. I've tried a number of different combinations, but nothing seems to be working. I can inject JS & CSS just fine, but when I try custom content and replacing the included index.html I get the same result. |
No. I ultimately commented out .EnableSwaggerUi() in SwaggerConfig and added the /dist folder as static files. I've been using it like that. Strangely I found it only had the issue on localhost. When deployed /swagger was working. |
I, too, am experiencing this issue when injecting a custom index.html file. [EDIT] |
Are people still experiencing an issue here? Will go ahead and close if no response in the next couple of days |
Actually! I was able to get it fixed @sstrange. Basically you need to replace the periods with dashes in the various script and stylesheet includes. |
the root cause is the "Swashbuckle.core" source code we build to dll not include "css" "lib" "images",these are different Swashbuckle.core.dll get from nuget. |
i am facing same issue |
I've followed the instructions in the readme.md and am able to get my raw swagger JSON at "http://localhost:16715/swagger/docs/v1" with all my routes and XML comments. I can copy/paste this into editor.swagger.io and it displays ok.
But "http://localhost:16715/swagger/" is not rendering. This is the screenshot with javascript console. Can anyone point me in the right direction?
The text was updated successfully, but these errors were encountered: