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

7th
May 2018
dharezlak
@dharezlak
May 07 2018 08:58

@dharezlak your uri needs to be ws://....

@spencergibb My URI is built with ws://.... In the Chrome's dev tools tab I see ws://localhost... and the connection works fine. When I close the WS connection it stays in the CLOSING state until a 60s timeout. When I contact the downstream server directly the WS connection closes immediately and my application logic works fine. My gateway config for WS proxying looks like this:

builder.routes()
                .route("ws", r -> r
                        .path("/ws/**")
                        .uri("ws://localhost:8000"))
oscr
@oscr
May 07 2018 09:03

Hi!

I'm migrating an application from Spring Boot 1.5.12.RELEASE to 2.0.1.RELEASE but it seems like updating environment variables has broken / changed. The following invokation works for 1.5 not for using 2.0.1 (just adding "/actuator" to the 2.0.1 path)

curl --request POST \
  --url http://localhost:8080/actuator/env \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data foo=2
{
    "timestamp": "2018-05-07T08:53:02.303+0000",
    "status": 415,
    "error": "Unsupported Media Type",
    "message": "Content type 'application/x-www-form-urlencoded' not supported",
    "path": "/actuator/env"
}

The documentation doesn't mention any changes in the content type:
"POST to /actuator/env to update the Environment and rebind @ConfigurationProperties and log levels."
http://cloud.spring.io/spring-cloud-static/Finchley.RC1/single/spring-cloud.html

Am I missing something or is this a bug?

dharezlak
@dharezlak
May 07 2018 09:25
@spencergibb Continuing on the hanging WS connection when proxied through the gateway I used Wireshark to look at the network traffic and confirmed that the WebSocket Connection Close [FIN] [MASKED] packet is sent to the gateway but is not proxied to the downstream server. Also, the server does not respond with return close packet. How can I debug this further?
CH4:D
@chad_d_stud_twitter
May 07 2018 12:56

@chad_d_stud_twitter
i’m having a n issue trying out the feignclient fallback

Assume myFeign can’t connect to a remote service

@FeignClient(name = "myFeign", fallback = MyFeignClientFallback.class)
public interface MyFeignClient {
    @PostMapping(“/test")
    Object test(@RequestParam(“param1") String param1);
}

My fallback class is this:

@Component
public class MyFeignClientFallback implements MyFeignClient {
    public Object test(@RequestParam(“param1”) String param1) {

        return “Error";
    }

}

instead of calling the fallback method it just outright fails:

2018-05-07 15:19:48.052 ERROR 41592 --- [nio-8081-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: com.netflix.client.ClientException: Load balancer does not have available server for client: myFeign] with root cause

com.netflix.client.ClientException: Load balancer does not have available server for client: myFeign
```
i already have my feign client working. i was toying with the idea of using hystrix

Prashant Ladha
@prashantladha
May 07 2018 13:33

While trying to learn about Spring Cloud Data Flow, I have a Fundamental question :

what object is passed on in between source to processor to another processor to sink?
Is it like Spring Batch that you are passed a object in Processor (or a list like in ItemWriter) but you can only get one kind-of object be passed on?

MadeInChina
@MadeInChina
May 07 2018 14:26
@spencergibb any suggestion for spring-cloud/spring-cloud-netflix#2915?
D D
@dosdebug
May 07 2018 16:08
I have confusion regarding spring-cloud-config-server design. We have enabled configuration properties of git, svn, jdbc etc on EnvironmentRepositoryConfiguration, why not add them on individual classes, so we don’t load all at once and only load depending upon the configuration?
By We, I mean Spring cloud config server team :)
Is there any reason or my understanding is wrong?
Prashant Ladha
@prashantladha
May 07 2018 20:30

While trying to learn about Spring Cloud Data Flow, I have a Fundamental question :

what object is passed on in between source to processor to another processor to sink?
Is it like Spring Batch that you are passed a object in Processor (or a list like in ItemWriter) but you can only get one kind-of object be passed on?

Any help on this query ? any pointers?

While trying to learn about Spring Cloud Data Flow, I have a Fundamental question :
what object is passed on in between source to processor to another processor to sink?
Is it like Spring Batch that you are passed a object in Processor (or a list like in ItemWriter) but you can only get one kind-of object be passed on?

Any help on this query ? any pointers?