These are chat archives for spring-cloud/spring-cloud

27th
Mar 2018
Ryan Baxter
@ryanjbaxter
Mar 27 2018 00:10
Ribbon should prefer services in the same zone first
as long as they have the same hostname and that property is set than they should be considered to be in the same zone
Ryan Baxter
@ryanjbaxter
Mar 27 2018 00:16
@Lovnx as far as I can tell we dont use isStaticFilter anywhere in Spring Cloud Netflix
Dante Sun
@dantesun
Mar 27 2018 10:08
What wrong with my code below? I dump the http traffic and see a “transfer-encoding: chunked” header in request and ‘content-length’ is missing. I am using Spring Boot 2.0 release version.
    WebClient client = WebClient.builder()
        .baseUrl("http://example.com")
        .defaultHeader("Authorization", token)
        .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_UTF8_VALUE)
        .clientConnector(new ReactorClientHttpConnector(builder -> {
          PoolResources resources = PoolResources.fixed(“single", 1);
          builder.poolResources(resources);
        })).build();
    JSONObject request = new JSONObject();
    request.put(“xxxxx", “xxxxx");

    Mono<ClientResponse> responseMono = client.post().uri("/data/long_poll")
        .syncBody(request.toString()).exchange();
Dave Syer
@dsyer
Mar 27 2018 10:13
transfer-encoding: chunked implies no content-length, doesn't it?
Is that the only symptom?
Is it really a Spring Cloud question?
Dante Sun
@dantesun
Mar 27 2018 10:20
oops, wrong room. sorry. @dsyer
John D Giotta
@jdgiotta
Mar 27 2018 13:11
I'm stumped. For some reason my spring cloud config application will not publish to kafka
I know it is connecting to kafka because it is creating the springCloudBus topic
When I was using RabbitMQ it worked with very little effort.
What can I do to debug the issue?
John D Giotta
@jdgiotta
Mar 27 2018 13:29
I see there is an open issue in github about my problem
spring-cloud/spring-cloud-config#787
No resolution or feedback
ulmermark
@ulmermark
Mar 27 2018 16:42
curious if when the spring cloud config server is backed by a jdbc database, can you set properties to be default properties similar to properties set in a root level application.yml in a git repo using a NULL application column or something similar? springBootVersion = '1.5.9.RELEASE'
springCloudVersion = 'Edgware.RELEASE'
Dave Syer
@dsyer
Mar 27 2018 16:59
I think it's just like files. So "application".
ulmermark
@ulmermark
Mar 27 2018 17:17

@dsyer thinking too much, looks like it is working , thanks

curl http://localhost:8888/dil-hello-world-svc/local/integration | json_pp % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 441 0 441 0 0 1078 0 --:--:-- --:--:-- --:--:-- 1078 { "state" : null, "propertySources" : [ { "source" : { "mark.test.integer" : "1000", "mark.test.encrypted" : "motu", "mark.test.list[0].name" : "list 0 name", "mark.test.list[1].name" : "list 1 name", "mark.test.string" : "this is a string" }, "name" : "dil-hello-world-svc-default" }, { "source" : { "this.is.a.default.property" : "a global value goes here" }, "name" : "application-default" } ], "label" : "integration", "name" : "dil-hello-world-svc", "version" : null, "profiles" : [ "local" ] }