These are chat archives for spring-cloud/spring-cloud
running the hystrix dashboard in my app, when I get redirected to
Unable to connect to Command Metric Stream. in red.
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.
https://localhost:8081/proxy.stream?origin=https%3A%2F%2Flocalhost%3A8081%2Fhystrix.streamin the browser, it just gives me the main hystrix welcome dashboard (with the form fields)
https://localhost:8081/hystrix.streamin browser yields me that hystrix welcome page
@EnableHystrixin the doc at http://cloud.spring.io/spring-cloud-netflix/spring-cloud-netflix.html.
ok, so to get this to work I did 2 things.
@EnableHystrixin my main config class
Then it works
So a bit confused as to why prior to this addition of that dependency, my FeignClient with a fallback configured worked (it still does after too)... I thought that was already using Hystrix under the covers hence all the required libs were already in place. No?
compile 'org.springframework.cloud:spring-cloud-starter-hystrixthe app that had working feign clients with fallbacks being invoked, would not start when
Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE' java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:315) at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111) at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:338) at org.springframework.boot.actuate.health.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:122)
management.health.db.enabled=trueto my bootstrap properties, but it doesn't seem to help
routes: GeoServer: path: /geoserver/** stripPrefix: false sensitiveHeaders: Cookie,Set-Cookie,Authorization
GET /geoserver/ows?service=wfs&request=getcapabilities HTTP/1.1 HOST: localhost:8081 authorization: Basic YWRtaW46Z2Vvc2VydmVy
Basic Authenticationam I right? It’s using a remote auth server or the service is also handling the authentication?
sensitiveHeaderstry to make it global adding:
zuul: sensitive-headers: Cookie,Set-Cookie
routes: GeoServer: path: /geoserver/** stripPrefix: false # sensitiveHeaders: Cookie,Set-Cookie,Authorization
Authorizationheader is black-listed and won’t downstream