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

Health-UI call the wrong URL for health #21517

Closed
survivant opened this issue Nov 17, 2021 · 4 comments · Fixed by #21531
Closed

Health-UI call the wrong URL for health #21517

survivant opened this issue Nov 17, 2021 · 4 comments · Fixed by #21531
Labels
Milestone

Comments

@survivant
Copy link
Contributor

survivant commented Nov 17, 2021

Describe the bug

I have this dependency in my pom.xml (Quarkus 2.4.2.Final)

<dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-smallrye-health</artifactId>
        </dependency>

if I enter this url : http://localhost:8080/q/health

I'll obtain this

{
    "status": "UP",
    "checks": [
        {
            "name": "SmallRye Reactive Messaging - liveness check",
            "status": "UP",
            "data": {
                "cleanupjob": "[OK]",
                "cleanupjob-completed": "[OK]"
            }
        },
        {
            "name": "SmallRye Reactive Messaging - readiness check",
            "status": "UP",
            "data": {
                "cleanupjob": "[OK]",
                "cleanupjob-completed": "[OK]"
            }
        },
        {
            "name": "SmallRye Reactive Messaging - startup check",
            "status": "UP",
            "data": {
                "cleanupjob": "[OK]",
                "cleanupjob-completed": "[OK]"
            }
        }
    ]
}

but if I enter this : http://localhost:8080/q/health-ui/

I'll obtain this error

Why the url in the UI is trying to retreive this http://localhost:8080/health instead of http://localhost:8080/q/health

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

mvn io.quarkus.platform:quarkus-maven-plugin:2.4.2.Final:create \
    -DprojectGroupId=org.acme \
    -DprojectArtifactId=microprofile-health-quickstart \
    -Dextensions="smallrye-health"
cd microprofile-health-quickstart
mvn clean quarkus:dev

http://localhost:8080/q/health/ -> works
http://localhost:8080/q/health-ui/ -> fails

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@survivant survivant added the kind/bug Something isn't working label Nov 17, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 17, 2021

/cc @jmartisk, @xstefank

@gsmet
Copy link
Member

gsmet commented Nov 17, 2021

@phillip-kruger you might also be interested by this one given it's a UI issue.

@phillip-kruger
Copy link
Member

I'll have a look. as a workaround, you can set the url by clicking the gear icon in the UI and change the url in the for to /q/health

@phillip-kruger
Copy link
Member

@xstefank will look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants