Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:31

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 02:20

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 01:50

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 01:40

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 01:36

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 01:28

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 00:41

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 00:28

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 00:15

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • 00:11

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • Sep 22 15:20
    worldtiki edited #1450
  • Sep 22 15:15
    worldtiki edited #1450
  • Sep 22 15:15
    spring-issuemaster labeled #1450
  • Sep 22 15:15
    worldtiki opened #1450
  • Sep 22 02:31

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • Sep 22 02:20

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • Sep 22 01:50

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • Sep 22 01:40

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • Sep 22 01:36

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

  • Sep 22 01:28

    spring-buildmaster on gh-pages

    Sync docs from 2.1.x to gh-pages (compare)

Max Macalupu
@max-macalupu

I'm using my App with spring-cloud-config-server; 2.1.4.RELEASE with Greenwich.S.R.1
Issue: Uncommitted files in my local git repository are been resetting once my config-server is used through the [GET] http.

Log:

2019-08-29 11:44:13,886 WARN  11873 --- [http-nio-8888-exec-1] PatternMatchingJGitEnvironmentRepository : [:] The local repository is dirty or ahead of origin. Resetting it to origin/master.
2019-08-29 11:44:15,691 INFO  11873 --- [http-nio-8888-exec-1] PatternMatchingJGitEnvironmentRepository : [:] Reset label master to version AnyObjectId[edf7d3ab91d0b390777a7802bf0728d57a2109e7]

In spring-boot version 1.5.9.RELEASE that weird behavior never happened, Wonder if somebody had has any similar issue before?

Sushant Borse
@sushant91265_twitter
hi, I was able to print the ribbonresponse using ((IResponse) ctx.get("ribbonResponse")).getRequestedURI() but this is not printing anything when hystrix fallback is called. Has anyone faced this?
mohamadnachabe
@mohamadnachabe
anyone used consul connect with spring cloud? I'm struggling to find the correct way of telling my spring boot app to expect a sidecar
Spencer Gibb
@spencergibb
@mohamadnachabe what do you mean "expect a sidecar"?
mohamadnachabe
@mohamadnachabe
@spencergibb looking at the spring cloud documentation “To include Sidecar in your project, use the dependency with a group ID of org.springframework.cloud and artifact ID or spring-cloud-netflix-sidecar”. However this in regards of the Netflix sidecar. How do I do the equivalent of this for consul?
mohamadnachabe
@mohamadnachabe
Actually never mind my question, I think this doc is meant for the actual sidecar
Spencer Gibb
@spencergibb
yeah, meant for that module in netflix
mohanrao
@mohanrao
Any one has any latest performance comparisons zuul vs spring cloud gateway like this https://engineering.opsgenie.com/comparing-api-gateway-performances-nginx-vs-zuul-vs-spring-cloud-gateway-vs-linkerd-b2cc59c65369
We are planning to migrate from zuul to spring cloud gateway
Corey Downing
@coreydowning
Is it possible to have my stubs running with the spring cloud stubrunner CLI to register themselves with a eureka server? I've tried a few different things with no luck so far.
Matt Mitchell
@mwmitchell
Just asked this in the spring-boot channel but was recommended to ask here instead... question was: looking to find the most reliable way of getting the current/local server when using spring cloud. Zookeeper is used for mostly local dev, kubernetes is production. I've tried the Registry bean, but the uri is sometimes null in kubernetes. Any tips for how best to handle this?
Alberto Flores
@albertoaflores
Was asked by @spencergibb to move my question here...
Question: I read that "spring-boot-start-web" is not compatible with Spring Cloud Gateway. Do you know how can I build a UI with thymeleaf (or other web technology) that proxies to other external micros, whereby I can avoid CORS to those external services?
I had done it in the past by having a web app that uses Zuul (for proxies) and then thymeleaf for the app (most of the app was Vue.js). Without starter-web, how do you recommend we package our JS apps that need a proxy backed by cloud gateway starter?
Spencer Gibb
@spencergibb
Jeansen
@Jeansen
I've got an application where I set eureka.instance. appname: ${APP_NAME:${spring.application.name}}. On a client, I use discoveryClient.services to find all services and then I use the found service IDs with discoveryClient.getInstances(). That all works well when eureka.instance. appname is the same as spring.application.name. But when it is differen, e.g. "testme" discoveryClient.getInstances("testme") will fail and give no result. Is this by intention? I had expected that I can use any name I get from discoveryClient.serviceswith discoveryClient.getInstances().
Ahmed Yarub Hani Al Nuaimi
@ahmedyarub
good morning
I'm the author of this issue: spring-cloud/spring-cloud-gateway#1278
I talked a little with the team of Reactor Netty but they stopped responding here reactor/reactor-netty#833
I do have a full packet dump that I can share
Spencer Gibb
@spencergibb
add the packet dump to the reactor-netty issue?
blake-bauman
@blake-bauman
OOC, after a Spring Cloud release is cut, how long does it usually take before appearing on https://repo.spring.io/release ? We are particularly interested in Greenwich.SR3
Spencer Gibb
@spencergibb
@blake-bauman it first goes to maven central
and the sync to maven central hasn't started yet
blake-bauman
@blake-bauman
Thanks for the info. maven central would be even better. When would that happen? (We are trying to plan our release activities.)
Spencer Gibb
@spencergibb
happening as we speak
blake-bauman
@blake-bauman
Awesome. Thanks!
Sergey Kryvets
@skryvets
Hi everyone.
Is it possible to log entire response body sent from downstream in Global Filter in Spring Cloud Gateway?
I already have in place logging mechanism for all requests (based on answer provided from the link -> https://github.com/spring-cloud/spring-cloud-gateway/issues/747#issuecomment-451805283), but when I try to manipulate with serverWebExchange.getResponse().bufferFactory()I always end up with empty String. I’m not well versed in buffer/bytes manipulation, is there any hidden hint around it? Thanks!
Seems like response from downstream is not even stored in serverWebExchange.getResponse() at the time filter processing and only written somewhere at the very end of the chain. Again, I’m not an expert, please advise.
blake-bauman
@blake-bauman

After updating to Greenwich.SR3, I'm running into an issue with WebClient and bodyToFlux(). I'm mostly using SC Sleuth, and reverting to SR2 solves the problem. Basically, bodyToFlux(MyClass.class) isn't deserializing into MyClass and instead, I'm getting a ClassCastException for "class org.springframework.core.io.buffer.NettyDataBuffer cannot be cast to class foo.bar.MyClass". Excluding SC Sleuth also resolves the issue. I'm currently working on a standalone sample, but didn't know if there was a known workaround, or if I'm missing something.

Also, bodyToMono() works just fine, so Jackson deserialization is working and configured correctly.

Marcin Grzejszczak
@marcingrzejszczak
Interesting since i don't recall sleuth doing anything specific for that matter. @bsideup do you have an idea what the problem might be?
@blake-bauman can you file an issue please?
David
@knottnhupfer

Hi, using spring-boot-cloud-gateway I started to use spring reactive. Unfortunately I'm unable to read a file from a PUT method in the RestController.
More details can be found here:
https://stackoverflow.com/questions/57878258/trying-to-upload-file-via-spring-cloud-gateway-and-restcontroller

Any idea how the code should look like to read the file? A minimal code example is also provided.

David
@knottnhupfer
I already found various solutions, even this one looked familiar ... the endpoint gets called but the saveFile method never called. Don't know if my request is wrong or something else?
Spencer Gibb
@spencergibb
I'm not sure either. It's not specific to gateway, it is webflux and reactor
David
@knottnhupfer
anyway thx for your help! Very appreciated it
Spencer Gibb
@spencergibb
:+1:
blake-bauman
@blake-bauman
@marcingrzejszczak Opened: spring-cloud/spring-cloud-sleuth#1443
mohanrao
@mohanrao
Is there example project to learn how to use spring cloud bus to listen to events and publish custom application events using consul ?
Matthew Davis
@mateothegreat
why would you use consul for this?
use a message broker bro
Biswomohan Pattanaik
@Biswomohan_twitter
@spencergibb How to configure region parameter in server ?
Spencer Gibb
@spencergibb
can you be a little more specific?
Biswomohan Pattanaik
@Biswomohan_twitter
I debug and found out in ResponseCacheImpl.java they have this below condition @Override
public void onRemoval(RemovalNotification<Key, Value> notification) {
Key removedKey = notification.getKey();
if (removedKey.hasRegions()) {
Key cloneWithNoRegions = removedKey.cloneWithoutRegions();
regionSpecificKeys.remove(cloneWithNoRegions, removedKey);
}
}
Until your Key has region it will not going to enter inside if.
Spencer Gibb
@spencergibb
I don't know where the region that key has is set
ashraf
@ashraf-revo
hi to all , i want ask question , how should we deal with access_token after expired when using spring cloud gateway or zuul