-
Notifications
You must be signed in to change notification settings - Fork 543
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
Port is set to null - NewService.Check #40
Comments
So M1 depends on a snapshot of s-c-commons. AbstractDiscoveryLifecycle sets the port first so we can support when you want a random port and set |
Ok. I see. |
@jmirc no, it would be in a snapshot. Will need to do a release soon. See https://github.com/spring-cloud/spring-cloud-consul/blob/master/pom.xml#L61 |
Tested and it works. I am closing this bug. |
The port when a new instance of the NewService.Check is set to null when the
healthCheckUrl
is not set in the application.yml or in the bootstrap.yml.In this case, the http method is set using the following code and the port is retrieved from the service. I think it should be retrieved from the properties.
You can check the consul log to see the problem
If I check the
healthCheckUrl
property, everything works perfectly likeThe text was updated successfully, but these errors were encountered: