You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quarkus version: Upstream
Extension: stork-core and stork-configuration-generator
If no quarkus.stork.<SERVICE_NAME>.service-discovery.host is provided then by default localhost/127.0.0.1:80 is used as a service discovery host, and then an exception is thrown
2022-09-12 13:55:41,835 ERROR [io.qua.mut.run.MutinyInfrastructure] (vert.x-eventloop-thread-1) Mutiny had to drop the following exception: javax.ws.rs.WebApplicationException: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:80
at io.quarkus.ts.stork.custom.PingResource.lambda$pong$0(PingResource.java:22)
at io.smallrye.context.impl.wrappers.SlowContextualFunction.apply(SlowContextualFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnFailureTransform$UniOnFailureTransformProcessor.onFailure(UniOnFailureTransform.java:54)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromCompletionStage$CompletionStageUniSubscription.forwardResult(UniCreateFromCompletionStage.java:58)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
In previous upstream version, the default host was localhost.
Work around: Define on your application.properties the required Host with the expected format
Expected behavior
Default stork service discovery host should be localhost
Actual behavior
Default stork service is set to localhost/127.0.0.1:80
Go to the following module https://github.com/quarkus-qe/quarkus-test-suite/tree/main/service-discovery/stork-custom and set this application.properties
#quarkus.stork.pong.load-balancer.type=simplelb
quarkus.stork.pong.service-discovery.type=simple
# this properties make sense if you have a global service discovery state as a DB, for this scenario we are going to use an in-memory Map
#quarkus.stork.pong.service-discovery.host=localhost
quarkus.stork.pong.service-discovery.port=8080
#quarkus.stork.pong.service-discovery.pongServiceHost=localhost
quarkus.stork.pong.service-discovery.pongServicePort=8080
#quarkus.stork.pong-replica.load-balancer.type=simplelb
quarkus.stork.pong-replica.service-discovery.type=simple
# this properties make sense if you have a global service discovery state as a DB, for this scenario we are going to use an in-memory Map
#quarkus.stork.pong-replica.service-discovery.host=localhost
quarkus.stork.pong-replica.service-discovery.port=8080
#quarkus.stork.pong-replica.service-discovery.pongReplicaServiceHost=localhost
quarkus.stork.pong-replica.service-discovery.pongReplicaServicePort=8080
Then start the app in dev mode: mvn quarkus:dev
and finally run: curl -v Http://localhost:8080/ping/pong
Note: service discovery hostproperties are commented
The text was updated successfully, but these errors were encountered:
The problem is that the service discovery provider does not provide the host and port for the service instance.
So we can argue it's a bug in the service discovery provider.
However, as it seems that it was supported before, I'm opening a PR handling the null host and 0 port
The problem is that the service discovery provider does not provide the host and port for the service instance. So we can argue it's a bug in the service discovery provider.
However, as it seems that it was supported before, I'm opening a PR handling the null host and 0 port
Yes, its kind of regression. I was just checking what the ClientSendRequestHandlerdid before but you were faster ;-)
Describe the bug
Quarkus version: Upstream
Extension:
stork-core
andstork-configuration-generator
If no
quarkus.stork.<SERVICE_NAME>.service-discovery.host
is provided then by defaultlocalhost/127.0.0.1:80
is used as a service discovery host, and then an exception is thrownIn previous upstream version, the default host was
localhost
.Work around: Define on your application.properties the required Host with the expected format
Expected behavior
Default stork service discovery host should be
localhost
Actual behavior
Default stork service is set to
localhost/127.0.0.1:80
How to Reproduce?
git clone git@github.com:quarkus-qe/quarkus-test-suite.git
Go to the following module
https://github.com/quarkus-qe/quarkus-test-suite/tree/main/service-discovery/stork-custom
and set this application.propertiesThen start the app in dev mode:
mvn quarkus:dev
and finally run:
curl -v Http://localhost:8080/ping/pong
Note: service discovery
host
properties are commentedThe text was updated successfully, but these errors were encountered: