其他分享
首页 > 其他分享> > 前端通过HttpServl传值,前端没有登录lix.hystrix.exception.HystrixRuntimeException:

前端通过HttpServl传值,前端没有登录lix.hystrix.exception.HystrixRuntimeException:

作者:互联网

问题:

com.netflix.hystrix.exception.HystrixRuntimeException: UcenterClient#getUserInfoOrder(String) failed and no fallback available.
	at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:822)
	at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:807)
	at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140)
	at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
	at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
	at com.netflix.hystrix.AbstractCommand$DeprecatedOnFallbackHookApplication$1.onError(AbstractCommand.java:1472)
	at com.netflix.hystrix.AbstractCommand$FallbackHookApplication$1.onError(AbstractCommand.java:1397)
	at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87)
	at rx.observers.Subscribers$5.onError(Subscribers.java:230)

解决办法:控制台打印输出request,发现打印出来不是想要的,说明HttpServletRequest没有传回正确的值,最后通过重新登录就可以传回来了

标签:exception,java,OnSubscribeDoOnEach,hystrix,onError,前端,rx,AbstractCommand
来源: https://blog.csdn.net/weixin_53041144/article/details/116401936