Could not render e, see the console in swagger-ui

See original GitHub issue

Hi, please, help

I use swagger version 3.0.0-SNAPSHOT

After last updating I got such error in showing swagger-ui.html: image

/swagger/swagger-resources is empty: image

My dependencies: springfox-swagger-ui, springfox-swagger2, springfox-spring-webflux

Services which use old version of 3.0.0-SNAPSHOT work correctly

metadata of snapshot:

<metadata modelVersion="1.1.0">
  <groupId>io.springfox</groupId>
  <artifactId>springfox-core</artifactId>
  <version>3.0.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20181129.020224</timestamp>
      <buildNumber>19</buildNumber>
    </snapshot>
    <lastUpdated>20181129020255</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <classifier>javadoc</classifier>
        <extension>jar</extension>
        <value>3.0.0-20181129.020224-19</value>
        <updated>20181129020224</updated>
      </snapshotVersion>
      <snapshotVersion>
        <classifier>sources</classifier>
        <extension>jar</extension>
        <value>3.0.0-20181129.020224-19</value>
        <updated>20181129020224</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>jar</extension>
        <value>3.0.0-20181129.020224-19</value>
        <updated>20181129020224</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>3.0.0-20181129.020224-19</value>
        <updated>20181129020224</updated>
      </snapshotVersion>
    </snapshotVersions>
  </versioning>
</metadata>

I think it’s may be caused by this commit https://github.com/springfox/springfox/commit/51e25ac7bcbe7e6dba63e8c40f29ccfbd089cf76#diff-86946cb6d8e8cd492ceb2aae5ee51af0

Thanks in advance

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
lukasjapancommented, Jan 22, 2019

(+1)

I also noticed that /swagger-resources returns an empty array after adding the spring integration starter.

EDIT: I was able to fix the problem by adding additional packages: https://springfox.github.io/springfox/docs/snapshot/#springfox-spring-integration-support-incubating

springfox-spring-integration-webflux and spring-integration-webflux in my case.

2reactions
gbivinscommented, Feb 17, 2019

@lukasjapan that was it for me as well! Using 3.0.0-SNAPSHOT versions of springfox:

  • springfox-data-rest
  • springfox-spring-web
  • springfox-swagger2
  • springfox-swagger-ui
  • springfox-spring-integration-webmvc
  • spring-integration-http

a bit odd that we are forced to add spring-integration-* as a direct dependency into our app even though we aren’t using it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger UI Response: Could not render n, see the console
When using references ($ref) to define the various API Response codes, the message " Could not render n, see the console" is displayed ......
Read more >
swagger: is ' Could not render this component, see the ...
The issue was caused by this bug that affected the display of cURL commands for multipart/* requests. This bug was fixed in Swagger...
Read more >
Getting the error " Could not render n, see the console."
I am using the openAPI3 and added all apis there but when i run in browser, i am not getting any response, instead...
Read more >
is ' Could not render this component, see the console' an ...
Hi, I was wondering if the, ' Could not render this component, see the console' was an error message or if...
Read more >
Detecting your Swagger UI version
Some distinct identifiers to Swagger UI 2.x: The API version appears at the bottom of the page. Schemes are not rendered. Authorization, if...
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