feign
feign copied to clipboard
Feign RetryableException is not serialisable
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?
This is intentional. The RetryableException should be transient. There is no real way to serialize this properly.