swagger-ui: UI not loading specs, no errors

I recently pulled the latest swagger-ui from GitHub and now my swagger-ui will not load any spec files, even for examples that previously worked.

I’m deploying locally at http://localhost/swagger-ui/ The UI comes up OK, but when I enter the URL of a local resource http://localhost/swagger/examples/sample.json

the UI does not show the spec. (the resource exists; curl http://localhost/swagger/examples/sample.json works fine)

I can load the external spec http://api.wordnik.com/v4/resources.json OK.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

And of course, better error handling should be added to give feedback on why a spec file fails to validate…