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

Feb 2019
Jonatan Ivanov
Feb 08 01:47

@marcosbarbero I checked config-server but I'm not sute I like what I found there:

Basically it stars a mini spring-boot application while it passes an Environment to it, the mini app populates the environment then stops. :o

Archimedes Trajano
Feb 08 04:11
Ok I just found out that httpbin filters out X-Request-ID from their headers.
Archimedes Trajano
Feb 08 08:46
I am getting a weird error on the logs when I am using Spring-Cloud-Gateway, but I am having trouble tracing it.
foo_gateway.1.7x304whza28e@docker-engine | 2019-02-08 08:43:21.770 INFO 1 --- [ elastic-5] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
But I have a bootstrap-docker.yml and set the SPRING_PROFILES_ACTIVE=docker environment variable
      uri: http://config:8080
      fail-fast: true
At the start up it is okay
foo_gateway.1.tf9zvnesw13m@docker-engine    | 2019-02-08 08:43:57.649  INFO 1 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://config:8080
foo_gateway.1.tf9zvnesw13m@docker-engine    | 2019-02-08 08:43:57.961  INFO 1 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=gateway, profiles=[docker], label=null, version=a611374438e75aa1b9808908c57833480944e1a8, state=null
foo_gateway.1.tf9zvnesw13m@docker-engine    | 2019-02-08 08:43:57.962  INFO 1 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource {name='configService', propertySources=[MapPropertySource {name='configClient'}, MapPropertySource {name=' (document #2)'}, MapPropertySource {name=' (document #0)'}]}
(I am using the spring-cloud-samples as my config repo)
Archimedes Trajano
Feb 08 08:52
I think it's the actuator/health that's causing it.
Confirmed.. it is the actuator. If I have it enabled and I ping it I get status:"DOWN" and it is throwing those log messages
Bruce Zhang
Feb 08 10:58
The session USES redis to store json, but fails to fetch the data.Possible deserialization failure
org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'authentication' cannot be found on object of type 'java.util.LinkedHashMap' - maybe not public or not valid?
Feb 08 13:07
I am getting java.lang.NoClassDefFoundError: com/google/common/collect/Multimap when running the Spring Cloud Function samples here - I am using mvn -U package here. Any idea why this is happening?
Following is the full error message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade (default) on project function-sample-aws: Execution default of goal org.a
pache.maven.plugins:maven-shade-plugin:3.2.1:shade failed: A required class was missing while executing org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade:
Feb 08 13:32
@tmnuwan12 I am replying myself. This was fixed after removing all folders under com/google in .m2 folder.
Feb 08 13:59
Good day collegues!
My company uses nginx, i set https://SCDF url for dataflowRestTemplate and credentials in my property.yaml, when i start my app, bean creates normally. When i use dataflowtemplte.createi get 301 HTTP status because of SCDF really lives at http//SCDF. and i see it gives me needed Location in response, but it don't redirect automatically.
Could i fix it?
Or SCDF doesn't support such work schema?
Archimedes Trajano
Feb 08 18:24
For gateway, how do we get the "serviceId" that the discoveryclient found?
Specifically I want to be able to get the metadata for the service.
Archimedes Trajano
Feb 08 19:24
Is there an equivalent to debounce in WebFlux?
Archimedes Trajano
Feb 08 19:56
@trajano .bufferTimeout(20, Duration.ofSeconds(1))
Archimedes Trajano
Feb 08 22:58
Hi is there a simple way of just writing a custom body to the client from a GlobalFilter?