Home > Back-end >  Use feign errorDecoder IOException: stream is closed!!!!!
Use feign errorDecoder IOException: stream is closed!!!!!

Time:12-01

Is like that, I in feign the caller want to catch the exception thrown downstream, hence to configure ErrorDecoder but every time I use Util. The toString () method, and I said httpInputStream have closed, throws IOException, this is how this

CodePudding user response:

FeignConfiguration increased:
 @ Bean 
@ the Scope (" prototype ")
Public Feign. Builder feignBuilder () {
Return Feign. Builder ();
}

Or configuration increased feign. Hystrix. Enabled=false, it will come into force in global is not recommended,

CodePudding user response:

I also met the same problem, stackoverflow it says if breaking point will lead to the question, then I really no problem with the normal run mode
  • Related