question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Assets not loading

See original GitHub issue

I 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 – screen shot 2017-08-15 at 3 10 51 pm 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:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
Minasokonicommented, Aug 18, 2017

@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.

4reactions
shockeycommented, Apr 10, 2018

This is fixed! Going forward, you won’t need to provide the SVG data in the HTML you use to display Swagger-UI.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found