Assets not loading
See original GitHub issueI am using swagger-ui through a React component to display various swaggers, and in the cases of certain swagger specs, the assets do not load correctly. For example –
The lock next to the “Authorize” text is missing.
Q | A |
---|---|
Bug or feature request? | Bug |
Which Swagger/OpenAPI version? | 2.0 |
Which Swagger-UI version? | 3.1.4 |
How did you install Swagger-UI? | npm |
Which browser & version? | Google Chrome 60.0.3112.90 (Official Build) |
Which operating system? | macOS Sierra |
Demonstration API definition
Cannot provide entire spec because of confidentiality but can provide certain information about spec.
Configuration (browser query string, constructor, config.yaml)
new SwaggerUIBundle({
dom_id: '#swaggerContainer',
spec: this.state.spec,
presets: [presets.apis]
});
Expected Behavior
Icons should be present where they are not
Current Behavior
Currently missing these icons
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
How to fix Roblox assets not loading - Stealthy Gaming
How to fix Roblox assets not loading · Method 1: Check if you're downloading a fake asset · Method 2: Fix Roblox+ Issue...
Read more >Most assets fail to load - Engine Bugs - DevForum | Roblox
Most assets fail to load ... I'm not sure how to reproduce it, because I'm the only one I know experiencing it. It...
Read more >Assets not loading for me but load for others - Steam Community
The cause for this is most likely the mod caching feature. When enabled (which it is by default) all the custom assets, which...
Read more >Assets not loading for anyone else today? : r/tabletopsimulator
Assets not loading for anyone else today? · deleting steam cache + checking game files integrity · restarting everything · reinstalling the game....
Read more >What to do if your Clipchamp project or assets aren't loading
If your input file is an unsupported file type ; If loading doesn't progress at all, it's possible it got stuck. Try reloading...
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 Free
Top 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
@shockey Im going to make the loading of the icons a component and have that append to the DOM so that it loads in with the application without needing the index.html file.
This is fixed! Going forward, you won’t need to provide the SVG data in the HTML you use to display Swagger-UI.