feign icon indicating copy to clipboard operation
feign copied to clipboard

Feign RetryableException is not serialisable

Open asharani-m opened this issue 3 years ago • 1 comments

Hi, Unable to serialize the exception object RetryableException .

Get below exception : "could not serialize : feign.TARGET$HardCodedTarget"

Version : feign-core : 11.6

Additional info: Before referring to recent version of feign-core , I got below error After that above error("could not serialize :feign.Request")

While looking around for a solution , I came across this https://github.com/OpenFeign/feign/issues/1193. So upgraded the feign-core to recent version 11.6 . After that, exception("could not serialize :feign.Request") got resolved , but stuck up new exception "could not serialize :feign. TARGET$HardCodedTarget"

Any suggestions ? Workaround please?

asharani-m avatar Sep 08 '21 05:09 asharani-m

This is intentional. The RetryableException should be transient. There is no real way to serialize this properly.

kdavisk6 avatar Mar 24 '22 14:03 kdavisk6