Skip to content
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

Empty blank Swagger docs for newly created microservice project #27035

Open
ken4ward opened this issue Aug 22, 2024 · 10 comments
Open

Empty blank Swagger docs for newly created microservice project #27035

ken4ward opened this issue Aug 22, 2024 · 10 comments
Labels
area: needs-reproduction area: waiting for information $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $100 https://www.jhipster.tech/bug-bounties/

Comments

@ken4ward
Copy link

ken4ward commented Aug 22, 2024

Screenshot 2024-08-22 at 9 19 17 AM

Overview of the issue

I created a new microservice project using jHipster 8, Keycloak and docker. The project contains the gateway and a microservice contanerised with docker. I accessed the project on http://localhost:8080. It works fine with the exemption that Swagger docs on this url http://localhost/admin/docs does not show anything. It is blank. This is strange and I sought the support of more knowledgable experts here.

Developing locally, Swagger docs did not show at http://localhost:8080/admin/docs

JHipster Version(s)

8.6.0

JHipster configuration
application {
  config {
    baseName gateway
    packageName com.christdoes.gateway
    applicationType gateway
    authenticationType oauth2
    buildTool maven
    cacheProvider hazelcast
    databaseType sql
    clientFramework angularX
    clientPackageManager npm
    devDatabaseType h2Memory
    prodDatabaseType postgresql
    enableHibernateCache true
    enableSwaggerCodegen true
    enableTranslation true
    languages [nl, en, fr, de, es]
    messageBroker kafka
    nativeLanguage en
    searchEngine elasticsearch
    serverPort 8080
    serviceDiscoveryType consul
    skipClient false
    skipServer false
    skipUserManagement false
    testFrameworks [cucumber]
    websocket no
  }
  entities *
}

application {
  config {
    baseName notaries
    packageName com.christdoes.notaries
    applicationType microservice
    authenticationType oauth2
    buildTool maven
    cacheProvider hazelcast
    databaseType sql
    devDatabaseType h2Memory
    dtoSuffix DTO
    enableHibernateCache true
    enableSwaggerCodegen true
    enableTranslation true
    languages [nl, en, fr, de, es]
    messageBroker kafka
    nativeLanguage en
    prodDatabaseType postgresql
    reactive true
    searchEngine elasticsearch
    serverPort 8081
    serviceDiscoveryType consul
    skipClient true
    skipServer false
    skipUserManagement false
    testFrameworks [cucumber]
    websocket no
  }
  entities ...
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "appsFolders": [
      "gateway",
      "notaries"
    ],
    "directoryPath": "../",
    "jhipsterVersion": "8.6.0",
    "monitoring": "prometheus",
    "serviceDiscoveryType": "consul"
  }
}
JHipster configuration for gateway not found
JHipster configuration for notaries not found
Environment and Tools

java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment Oracle GraalVM 22.0.1+8.1 (build 22.0.1+8-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 22.0.1+8.1 (build 22.0.1+8-jvmci-b01, mixed mode, sharing)

git version 2.39.3 (Apple Git-146)

node: v20.16.0
npm: 10.8.1

Docker version 26.1.4, build 5650f9b

<!--
If the error is during an entity creation or associated with a specific entity.
If you are using JDL, please share that configuration as well.
-->

##### **Browsers and Operating System**
Google Chrome & MacOS M3

<!-- What OS are you on? is this a problem with all browsers or only IE8? -->
MacOS M3
- [ ] Checking this box is mandatory (this is just to show you read everything)





@ken4ward
Copy link
Author

@jkutner @jdigger @gunnarahlberg @mraible is there anyone here to help on this issue? Thanks.

@mshima
Copy link
Member

mshima commented Aug 22, 2024

@ken4ward you should post jhipster info output in the issue description.

@ken4ward

This comment was marked as resolved.

@mshima
Copy link
Member

mshima commented Aug 22, 2024

We need a full jhipster info or a full jdl in the issue DESCRIPTION.
Since you are using microservices we need a sample with --workspaces.
It cannot be edited because we use it to generate the applications.
Generate stripped applications if needed.

@ken4ward

This comment was marked as resolved.

@mshima
Copy link
Member

mshima commented Aug 23, 2024

What about jhipster info in newsample folder?

@ken4ward

This comment was marked as resolved.

@ken4ward
Copy link
Author

@mshima @jkutner @jdigger @gunnarahlberg please any help on this? Hoping to hear from you.

@mshima
Copy link
Member

mshima commented Aug 27, 2024

@ken4ward please remove .yo-rc.json from newsample folder and run jhipster info using v8.7.0

@mraible mraible added $100 https://www.jhipster.tech/bug-bounties/ $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ labels Sep 13, 2024
@mraible
Copy link
Contributor

mraible commented Sep 13, 2024

Added bug bounty to try and attract attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: needs-reproduction area: waiting for information $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $100 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

No branches or pull requests

3 participants