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

21st
Nov 2018
Xiao Yu
@mars05
Nov 21 2018 01:30
Hello everyone! When I use the native configuration of spring-cloud-config-server(version: Greenwich.M1), the program throw an exception. How can I solve it?
Caused by: java.lang.IllegalStateException: You need to configure a uri for the git repository
    at org.springframework.util.Assert.state(Assert.java:73) ~[spring-core-5.1.2.RELEASE.jar:5.1.2.RELEASE]
    at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.afterPropertiesSet(JGitEnvironmentRepository.java:245) ~[spring-cloud-config-server-2.1.0.M1.jar:2.1.0.M1]
    at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.afterPropertiesSet(MultipleJGitEnvironmentRepository.java:69) ~[spring-cloud-config-server-2.1.0.M1.jar:2.1.0.M1]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1804) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]
    ... 154 common frames omitted
Ryan Baxter
@ryanjbaxter
Nov 21 2018 01:34
do you have spring.cloud.config.server.bootstrap=true?
Xiao Yu
@mars05
Nov 21 2018 01:39
Yes,this my application.yml:
spring:
  cloud:
    config:
      server:
        bootstrap: true
        native:
          search-locations: classpath:/config-repo
Xiao Yu
@mars05
Nov 21 2018 01:50
Thank you,I will try it.
Sushant
@bsushant-athena
Nov 21 2018 05:31
hi all, ribbon.MaxConnectionsPerHost is part of zuul1 or not?
Paulo Lima
@pflima92
Nov 21 2018 14:20
@spencergibb Excellent news! Thanks! I was tired to use the latest snapshots to use GCP's features. =)
Ryan Baxter
@ryanjbaxter
Nov 21 2018 14:30
@bsushant-athena it is if you route requests via service id
dnijssen
@dnijssen
Nov 21 2018 14:54
Hello I'm triggering a Spring Cloud Bus /monitor endpoint via my Gitlab webhook however I keep getting 2018-11-21 15:48:21.296 INFO 8440 --- [nio-8480-exec-6] o.s.cloud.bus.event.RefreshListener : Received remote refresh request. Keys refreshed [] back :/
Working with Spring Boot 2.1 and Spring Cloud Greenwich M2
Anton Fedosov
@acidelk
Nov 21 2018 14:59
Anybody know, how can i add more than one path predicate in one route using yaml?
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 21 2018 15:42
Hello @acidelk what exactly is your usecase? Please provide an example
dnijssen
@dnijssen
Nov 21 2018 15:46
I can't seem to figure out why my Spring Cloud Bus does not trigger my client applications. I'm wondering if it has anything to do with my config.server.git setup
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 21 2018 15:53
Hello @dnijssen it's difficult to tell without seeing the code; please provide link to a demo project that recreates the issue - then we can verify it for you
Sushant
@bsushant-athena
Nov 21 2018 17:35
@ryanjbaxter can you please explain what do you mean be route requests via service id ?
Anton Fedosov
@acidelk
Nov 21 2018 19:54

Hi @OlgaMaciaszek
For example:
My service have 3 rest point -
1) /users/find 2) /users/status 3) /users/save
I can`t do this

spring:
  cloud:
    gateway:
      routes:
      - id: users
        uri: http://${HOST}:81
        predicates:
        - Path=/users/find
        - Path=/users/status

and i can`t write something like that

spring:
  cloud:
    gateway:
      routes:
      - id: users
        uri: http://${HOST}:81
        predicates:
        - Path=/users/(find|status)

How can i do this routes without dublicate route?

Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 21 2018 19:59
@acidelk do you want to have the same route for all the endpoints starting with /user or only some of them?
Anton Fedosov
@acidelk
Nov 21 2018 20:01
@OlgaMaciaszek
i don't want expose /users/save over gateway
Anton Fedosov
@acidelk
Nov 21 2018 20:06
i did this in nginx, but in my plan migrate nginx conf into spring gateway
Anbu Sampath
@anbusampath
Nov 21 2018 20:08
question related spring cloud project document , https://spring.io/projects/spring-cloud#learn page missing document link for milestone and Snapshot versions. is it expected behavior that only GA and SR docs get published ?
Anbu Sampath
@anbusampath
Nov 21 2018 20:13
image.png
Also Finchley.SR2 docs missing images
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 21 2018 20:17
@acidelk I'm OOF now, but will get back to you tomorrow
Anton Fedosov
@acidelk
Nov 21 2018 20:18
@OlgaMaciaszek Ok. bye
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 21 2018 20:18
@anbusampath tha
Thanks for reporting it
Looks like a bug. We will get it fixed.