issue commentdenoland/deno

deno cannot import file from url without context

@bartlomieju Thanks for asking, well I think I am making some progress, I have a test failling. But could you show me where the function get_source_code is used ?

Chococrok

comment created time in 4 days

issue commentdenoland/deno

deno cannot import file from url without context

Yes it helps, thank you for pointing me in the right direction. I will do my best although it's my first time reading some rust !

Chococrok

comment created time in 10 days

issue commentdenoland/deno

deno cannot import file from url without context

Extension doesn't seems to matter. It works if I serve my file at localhost:8080/too/test.blorg. Deno doesn't care about Content-type header neither.

The reason is that deno cache the scripts into ~/.cache/deno/http/localhost_PORT8080/*.whatever. If the file is served at the root URL then the file name is empty and deno try to execute the parent folder. Same happen if you serve the file at an url ending with '/' for example: localhost:8080/too/.

I think there should be a default name or an explicit error thrown.

If you could show me which part of the code is responsible of caching the imported files, I would be happy to contribute.

Chococrok

comment created time in 11 days

issue openeddenoland/deno

deno cannot import file from url without context

Description

As a test, I tried to serve a .ts file with a simple node application serving at http://localhost:8080. Then I tried to import it from an other ts file executed with deno. The result was an error hard to understand (See below)

Steps to reproduce

  • Serve a simple ts file at http://localhost:8080
  • Execute an other ts file with deno containing :
import  test from 'http://localhost:8080';

Logs

DEBUG TS - getScriptVersion() /home/chococrok/git_repos/deno/test1.ts 
DEBUG TS - getScriptKind() /home/chococrok/git_repos/deno/test1.ts
DEBUG TS - getCompilationSettings()
DEBUG TS - getDefaultLibFileName()
DEBUG TS - compiler._resolveModule { moduleSpecifier: "$asset$/lib.deno_runtime.d.ts", containingFile: "" }
DEBUG TS - compiler._resolveFileName { moduleSpecifier: "$asset$/lib.deno_runtime.d.ts", containingFile: "" }
DEBUG TS - resolveModule sourceCode length: 83663
DEBUG TS - resolveModule has media type: TypeScript
DEBUG TS - compiler._setFileName { moduleSpecifier: "$asset$/lib.deno_runtime.d.ts", containingFile: "" }
DEBUG TS - resolveModuleNames() { moduleNames: [ "http://localhost:8080", "https://deno.land/std/http/server.ts" ], containingFile: "/home/chococrok/git_repos/deno/test1.ts" }
DEBUG TS - compiler._resolveModule { moduleSpecifier: "http://localhost:8080", containingFile: "/home/chococrok/git_repos/deno/test1.ts" }
DEBUG TS - compiler._resolveFileName { moduleSpecifier: "http://localhost:8080", containingFile: "/home/chococrok/git_repos/deno/test1.ts" }
DEBUG TS - os.fetchModuleMetaData { specifier: "http://localhost:8080", referrer: "/home/chococrok/git_repos/deno/test1.ts" }
DEBUG RS - fetch_module_meta_data. specifier http://localhost:8080 referrer /home/chococrok/git_repos/deno/test1.ts
DEBUG RS - resolve_module specifier http://localhost:8080 referrer /home/chococrok/git_repos/deno/test1.ts
DEBUG RS - module_name: http://localhost:8080/, filename: /home/chococrok/.cache/deno/deps/http/localhost_PORT8080/
DEBUG RS - fetch local or reload http://localhost:8080/ is_module_remote true
DEBUG RS - msg_from_js FetchModuleMetaData sync true
DEBUG RS - op err Is a directory (os error 21)
DEBUG RS - msg_from_js WorkerPostMessage sync true
DEBUG RS - Got message from worker: {"success":false,"cmdId":1,"data":{"message":"Uncaught Other: Is a directory (os error 21)","sourceLine":"                    return new DenoError(kind, base.error());","scriptResourceName":"gen/cli/bundle/compiler.js","lineNumber":131177,"startPosition":9377027,"endPosition":9377028,"errorLevel":8,"startColumn":27,"endColumn":28,"isSharedCrossOrigin":false,"isOpaque":false,"frames":[{"line":131166,"column":21,"functionName":"DenoError","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":true,"isWasm":false},{"line":131177,"column":28,"functionName":"maybeError","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":131181,"column":29,"functionName":"maybeThrowError","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":132763,"column":21,"functionName":"sendSync","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":133466,"column":33,"functionName":"fetchModuleMetaData","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":133843,"column":56,"functionName":"_resolveModule","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":133984,"column":53,"functionName":"resolveModuleNames","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":127083,"column":150,"functionName":"compilerHost.resolveModuleNames","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":94303,"column":139,"functionName":"resolveModuleNamesWorker","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false},{"line":94545,"column":36,"functionName":"resolveModuleNamesReusingOldState","scriptName":"gen/cli/bundle/compiler.js","isEval":false,"isConstructor":false,"isWasm":false}]}}
DEBUG TS - getMessage
DEBUG RS - Cmd id for get message handler: 1
DEBUG RS - msg_from_js WorkerGetMessage sync false
DEBUG RS - Received message from worker
DEBUG RS - compiler error exiting!
Uncaught Other: Is a directory (os error 21)
    at DenoError (js/errors.ts:22:5)
    at maybeError (js/errors.ts:33:12)
    at maybeThrowError (js/errors.ts:39:15)
    at sendSync (js/dispatch.ts:86:5)
    at fetchModuleMetaData (js/os.ts:73:19)
    at _resolveModule (js/compiler.ts:255:38)
    at resolveModuleNames (js/compiler.ts:486:35)
    at compilerHost.resolveModuleNames (third_party/node_modules/typescript/lib/typescript.js:121106:138)
    at resolveModuleNamesWorker (third_party/node_modules/typescript/lib/typescript.js:88311:127)
    at resolveModuleNamesReusingOldState (third_party/node_modules/typescript/lib/typescript.js:88553:24)

created time in 13 days

issue closedspring-cloud/spring-cloud-openfeign

feign doesn't use listOfservers

Hello, I have a problem trying to use feign + ribbon without eureka. I tried using:

adventure-microservice:
  context-path: /v1
  ribbon:
    NIWSServerListClassName: com.netflix.loadbalancer.ConfigurationBasedServerList
    listOfServers: ${ADVENTURE_MS_HOST:localhost}:${ADVENTURE_MS_PORT:8081}

and

 ribbon:
   eureka:
    enabled: false

And I tried with Finchley.SR2, Greenwich.RC1 and Greenwich.RC2. Here is the stack trace:


2019-02-04 01:41:23.021  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.netflix.config.ChainedDynamicProperty  : Flipping property: adventure-microservice.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-02-04 01:41:23.065  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.n.u.concurrent.ShutdownEnabledTimer    : Shutdown hook installed for: NFLoadBalancer-PingTimer-adventure-microservice
2019-02-04 01:41:23.083  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.netflix.loadbalancer.BaseLoadBalancer  : Client: adventure-microservice instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=adventure-microservice,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2019-02-04 01:41:23.101  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.n.l.DynamicServerListLoadBalancer      : Using serverListUpdater PollingServerListUpdater
2019-02-04 01:41:23.138  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.netflix.config.ChainedDynamicProperty  : Flipping property: adventure-microservice.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-02-04 01:41:23.147  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.n.l.DynamicServerListLoadBalancer      : DynamicServerListLoadBalancer for client adventure-microservice initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=adventure-microservice,current list of Servers=[localhost:8081],Load balancer stats=Zone stats: {unknown=[Zone:unknown;	Instance count:1;	Active connections count: 0;	Circuit breaker tripped count: 0;	Active connections per server: 0.0;]
},Server stats: [[Server:localhost:8081;	Zone:UNKNOWN;	Total Requests:0;	Successive connection failure:0;	Total blackout seconds:0;	Last connection made:Thu Jan 01 01:00:00 CET 1970;	First connection made: Thu Jan 01 01:00:00 CET 1970;	Active Connections:0;	total failure count in last (1000) msecs:0;	average resp time:0.0;	90 percentile resp time:0.0;	95 percentile resp time:0.0;	min resp time:0.0;	max resp time:0.0;	stddev resp time:0.0]
]}ServerList:com.netflix.loadbalancer.ConfigurationBasedServerList@262b2d54
2019-02-04 01:41:23.531 ERROR [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.w.m.o.service.impl.OrderServiceImpl    : feign.RetryableException: Connexion refusée (Connection refused) executing GET http://adventure-microservice/v1/adventure-events/2
	at feign.FeignException.errorExecuting(FeignException.java:65)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:105)
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:77)
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:102)
	at com.sun.proxy.$Proxy159.getAdventureEvent(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
	at com.sun.proxy.$Proxy160.getAdventureEvent(Unknown Source)
	at com.wildadventures.microservice.order.service.impl.OrderServiceImpl.insertMany(OrderServiceImpl.java:92)
	at com.wildadventures.microservice.order.controller.impl.OrderController.postMany(OrderController.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:884)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:858)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:48)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at brave.servlet.TracingFilter.doFilter(TracingFilter.java:86)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connexion refusée (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
	at sun.net.www.http.HttpClient.New(HttpClient.java:339)
	at sun.net.www.http.HttpClient.New(HttpClient.java:357)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at feign.Client$Default.convertResponse(Client.java:150)
	at feign.Client$Default.execute(Client.java:72)
	at org.springframework.cloud.sleuth.instrument.web.client.feign.TracingFeignClient.execute(TracingFeignClient.java:91)
	at org.springframework.cloud.sleuth.instrument.web.client.feign.LazyTracingFeignClient.execute(LazyTracingFeignClient.java:55)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer$1.doWithRetry(RetryableFeignLoadBalancer.java:103)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer$1.doWithRetry(RetryableFeignLoadBalancer.java:88)
	at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)
	at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:180)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer.execute(RetryableFeignLoadBalancer.java:88)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer.execute(RetryableFeignLoadBalancer.java:54)
	at com.netflix.client.AbstractLoadBalancerAwareClient$1.call(AbstractLoadBalancerAwareClient.java:104)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:303)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:287)
	at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:231)
	at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:228)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.drain(OnSubscribeConcatMap.java:286)
	at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.onNext(OnSubscribeConcatMap.java:144)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:185)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:180)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:94)
	at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:42)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber$1.call(OperatorRetryWithPredicate.java:127)
	at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.enqueue(TrampolineScheduler.java:73)
	at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.schedule(TrampolineScheduler.java:52)
	at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:79)
	at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:45)
	at rx.internal.util.ScalarSynchronousObservable$WeakSingleProducer.request(ScalarSynchronousObservable.java:276)
	at rx.Subscriber.setProducer(Subscriber.java:209)
	at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:138)
	at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:129)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
	at rx.Observable.subscribe(Observable.java:10423)
	at rx.Observable.subscribe(Observable.java:10390)
	at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:443)
	at rx.observables.BlockingObservable.single(BlockingObservable.java:340)
	at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:112)
	at org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient.execute(LoadBalancerFeignClient.java:63)
	at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceLoadBalancerFeignClient.execute(TraceLoadBalancerFeignClient.java:67)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:98)
	... 85 more

2019-02-04 01:41:24.109  INFO [order-microservice,,,] 16528 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty  : Flipping property: adventure-microservice.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647

One last strange thing if I stop the debugger before the feign HTTP call, the error is not thrown... plz Help order-micro-service.tar.gz

closed time in 2 months

Chococrok

issue commentspring-cloud/spring-cloud-openfeign

feign doesn't use listOfservers

Hello,

So I figured out that the error I got has nothing to do with feign. It was the way I was faking the remote server: while true; do cat adventure-event-response.txt | nc -l 8081; done .

Netcat is actually not able to handle several simultaneous request. And during my tests I was doing three requests in a loop.

Sorry for wasting your time. And for other people having this kind of issue what was working for me since the beginning was

adventure-microservice:
  context-path: /v1
  ribbon:
    listOfServers: ${ADVENTURE_MS_HOST:localhost}:${ADVENTURE_MS_PORT:8081}

 ribbon:
   eureka:
    enabled: false
Chococrok

comment created time in 2 months

created tagChococrok/tinver

tagv1.0.0

created time in 2 months

push eventChococrok/tinver

chococrok

commit sha 25728ad1aeb4f10d0d8a4288c31a1430aa6a4c9e

added docker

view details

Chococrok

commit sha 23c3a09703e0ef9e3e17377053cc0ef9482419c1

Merge pull request #3 from Chococrok/develop added docker

view details

push time in 2 months

PR merged Chococrok/tinver

added docker
+19 -3

0 comment

4 changed files

Chococrok

pr closed time in 2 months

PR opened Chococrok/tinver

added docker
+19 -3

0 comment

4 changed files

pr created time in 2 months

push eventChococrok/tinver

chococrok

commit sha 25728ad1aeb4f10d0d8a4288c31a1430aa6a4c9e

added docker

view details

push time in 2 months

push eventChococrok/tinver

chococrok

commit sha 6c3f12c61f684f8e0da47a8273ed722351def731

added parse of the body for every content-type

view details

Chococrok

commit sha 305bec4a6805a61f992f42bd9b9b1ef355c4f57a

Merge pull request #2 from Chococrok/develop added parse of the body for every content-type

view details

push time in 3 months

PR opened Chococrok/tinver

added parse of the body for every content-type
+2 -2

0 comment

1 changed file

pr created time in 3 months

push eventChococrok/tinver

chococrok

commit sha 6c3f12c61f684f8e0da47a8273ed722351def731

added parse of the body for every content-type

view details

push time in 3 months

push eventChococrok/tinver

chococrok

commit sha 81d85fb23294ae8e70c338ec381eb87d0e9d94a7

set up a clean project

view details

chococrok

commit sha 9ee85aa4bce4b246df05e92855670b942042dd8a

added verbose to print body of the request

view details

chococrok

commit sha 0ce71328edf890704947da41999037e4f9defd0c

throw error for unknow arguments, display help

view details

Chococrok

commit sha df5424bd2b3a9766703f7615a936651d8af73673

Merge pull request #1 from Chococrok/develop Develop

view details

push time in 3 months

PR merged Chococrok/tinver

Develop
+197 -122

0 comment

14 changed files

Chococrok

pr closed time in 3 months

PR opened Chococrok/tinver

Develop
+197 -122

0 comment

14 changed files

pr created time in 3 months

push eventChococrok/tinver

chococrok

commit sha 0ce71328edf890704947da41999037e4f9defd0c

throw error for unknow arguments, display help

view details

push time in 3 months

push eventChococrok/tinver

chococrok

commit sha 9ee85aa4bce4b246df05e92855670b942042dd8a

added verbose to print body of the request

view details

push time in 3 months

push eventChococrok/tinver

chococrok

commit sha 81d85fb23294ae8e70c338ec381eb87d0e9d94a7

set up a clean project

view details

push time in 3 months

create barnchChococrok/tinver

branch : develop

created branch time in 3 months

issue commentspring-cloud/spring-cloud-openfeign

feign doesn't use listOfservers

Thank you for your help. I removed database and I added in order to help you debug

 @Bean
    Logger.Level feignLoggerLevel(@Value("${feign.client.config.default.loggerLevel: NONE}") String debugLevel) {
        return Logger.Level.FULL;
    } 

But I have to say it is not easy to see where the request is emited. So I had to do mutliple curl and some were ok and some were failling... It feel like a bug with ribbon but I can't be sure.

[no-db-order-micro-service.zip](https://github.com/spring-cloud/spring-cloud-openfeign/files/2830181/no- db-order-micro-service.zip)

Chococrok

comment created time in 3 months

issue commentspring-cloud/spring-cloud-openfeign

feign doesn't use listOfservers

Commands to reproduce the error

  • Launch the db and the application (in the root folder):
docker build -t order-db database/ && docker run --name order-db_container -d -p 5432:5432 order-db && mvn clean package && java -Dspring.profiles.active=dev -jar target/order-0.0.1-SNAPSHOT.jar
  • Launch a fake remote service:
 cd integration/ && while true; do cat adventure-event-response.txt | nc -l 8081; done
  • Reproduce the error:
curl -X POST -H "content-type:application/json"  -d '{"adventureEventId":1, "userId":1}' http://localhost:8080/v1/orders

If you don't have docker, I will try to find an other solution. Maybe a H2 in memory database could do the trick.

Chococrok

comment created time in 3 months

issue commentspring-cloud/spring-cloud-openfeign

feign doesn't use listOfservers

Hello,

Thank you for your answer. I tried with capital L but with no success. It is actually even worst because then I have Load balancer does not have available server for client: adventure-microservice Whereas with lowercase l it seems that the list of server is set:

Server stats: [[Server:localhost:8081;	Zone:UNKNOWN;	Total Requests:0;	 .....etc  

However feign does this request: GET http://adventure-microservice/v1/adventure-events/2 It seems that feign is not using the list of servers

Chococrok

comment created time in 3 months

issue openedspring-cloud/spring-cloud-openfeign

feign doesn't use listOfservers

Hello, I have a problem trying to use feign + ribbon without eureka. I tried using:

adventure-microservice:
  context-path: /v1
  ribbon:
    NIWSServerListClassName: com.netflix.loadbalancer.ConfigurationBasedServerList
    listOfServers: ${ADVENTURE_MS_HOST:localhost}:${ADVENTURE_MS_PORT:8081}

and

 ribbon:
   eureka:
    enabled: false

And I tried with Finchley.SR2, Greenwich.RC1 and Greenwich.RC2. Here is the stack trace:


2019-02-04 01:41:23.021  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.netflix.config.ChainedDynamicProperty  : Flipping property: adventure-microservice.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-02-04 01:41:23.065  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.n.u.concurrent.ShutdownEnabledTimer    : Shutdown hook installed for: NFLoadBalancer-PingTimer-adventure-microservice
2019-02-04 01:41:23.083  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.netflix.loadbalancer.BaseLoadBalancer  : Client: adventure-microservice instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=adventure-microservice,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2019-02-04 01:41:23.101  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.n.l.DynamicServerListLoadBalancer      : Using serverListUpdater PollingServerListUpdater
2019-02-04 01:41:23.138  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.netflix.config.ChainedDynamicProperty  : Flipping property: adventure-microservice.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-02-04 01:41:23.147  INFO [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.n.l.DynamicServerListLoadBalancer      : DynamicServerListLoadBalancer for client adventure-microservice initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=adventure-microservice,current list of Servers=[localhost:8081],Load balancer stats=Zone stats: {unknown=[Zone:unknown;	Instance count:1;	Active connections count: 0;	Circuit breaker tripped count: 0;	Active connections per server: 0.0;]
},Server stats: [[Server:localhost:8081;	Zone:UNKNOWN;	Total Requests:0;	Successive connection failure:0;	Total blackout seconds:0;	Last connection made:Thu Jan 01 01:00:00 CET 1970;	First connection made: Thu Jan 01 01:00:00 CET 1970;	Active Connections:0;	total failure count in last (1000) msecs:0;	average resp time:0.0;	90 percentile resp time:0.0;	95 percentile resp time:0.0;	min resp time:0.0;	max resp time:0.0;	stddev resp time:0.0]
]}ServerList:com.netflix.loadbalancer.ConfigurationBasedServerList@262b2d54
2019-02-04 01:41:23.531 ERROR [order-microservice,3ae32d2990e3d756,3ae32d2990e3d756,false] 16528 --- [nio-8080-exec-2] c.w.m.o.service.impl.OrderServiceImpl    : feign.RetryableException: Connexion refusée (Connection refused) executing GET http://adventure-microservice/v1/adventure-events/2
	at feign.FeignException.errorExecuting(FeignException.java:65)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:105)
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:77)
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:102)
	at com.sun.proxy.$Proxy159.getAdventureEvent(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
	at com.sun.proxy.$Proxy160.getAdventureEvent(Unknown Source)
	at com.wildadventures.microservice.order.service.impl.OrderServiceImpl.insertMany(OrderServiceImpl.java:92)
	at com.wildadventures.microservice.order.controller.impl.OrderController.postMany(OrderController.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:884)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:858)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:48)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at brave.servlet.TracingFilter.doFilter(TracingFilter.java:86)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connexion refusée (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
	at sun.net.www.http.HttpClient.New(HttpClient.java:339)
	at sun.net.www.http.HttpClient.New(HttpClient.java:357)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at feign.Client$Default.convertResponse(Client.java:150)
	at feign.Client$Default.execute(Client.java:72)
	at org.springframework.cloud.sleuth.instrument.web.client.feign.TracingFeignClient.execute(TracingFeignClient.java:91)
	at org.springframework.cloud.sleuth.instrument.web.client.feign.LazyTracingFeignClient.execute(LazyTracingFeignClient.java:55)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer$1.doWithRetry(RetryableFeignLoadBalancer.java:103)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer$1.doWithRetry(RetryableFeignLoadBalancer.java:88)
	at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)
	at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:180)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer.execute(RetryableFeignLoadBalancer.java:88)
	at org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer.execute(RetryableFeignLoadBalancer.java:54)
	at com.netflix.client.AbstractLoadBalancerAwareClient$1.call(AbstractLoadBalancerAwareClient.java:104)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:303)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:287)
	at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:231)
	at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:228)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.drain(OnSubscribeConcatMap.java:286)
	at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.onNext(OnSubscribeConcatMap.java:144)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:185)
	at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:180)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:94)
	at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:42)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber$1.call(OperatorRetryWithPredicate.java:127)
	at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.enqueue(TrampolineScheduler.java:73)
	at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.schedule(TrampolineScheduler.java:52)
	at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:79)
	at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:45)
	at rx.internal.util.ScalarSynchronousObservable$WeakSingleProducer.request(ScalarSynchronousObservable.java:276)
	at rx.Subscriber.setProducer(Subscriber.java:209)
	at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:138)
	at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:129)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
	at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
	at rx.Observable.subscribe(Observable.java:10423)
	at rx.Observable.subscribe(Observable.java:10390)
	at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:443)
	at rx.observables.BlockingObservable.single(BlockingObservable.java:340)
	at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:112)
	at org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient.execute(LoadBalancerFeignClient.java:63)
	at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceLoadBalancerFeignClient.execute(TraceLoadBalancerFeignClient.java:67)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:98)
	... 85 more

2019-02-04 01:41:24.109  INFO [order-microservice,,,] 16528 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty  : Flipping property: adventure-microservice.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647

One last strange thing if I stop the debugger before the feign HTTP call, the error is not thrown... plz Help order-micro-service.tar.gz

created time in 3 months

issue commentspring-cloud/spring-cloud-netflix

FeignClient with listOfServers but can't get server instances

Hello, I have the same exact problem. I tryed what @wdyun said. And I tryed with Finchley.SR2, Greenwich.RC1 and Greenwich.RC2. plz Help order-micro-service.tar.gz

wdyun

comment created time in 3 months

more