Describe the bug When I send null object I get wrong message: no suitable HttpMessageConverter found for request type with Feign

Add check and appropriate debug message.

Sample Ref https://stackoverflow.com/questions/67376764/could-not-write-request-no-suitable-httpmessageconverter-found-for-request-type

Comment From: cbezmen

Is this solved? @rcbandit111

Comment From: rcbandit111

no, I don't have updates on this topic

Comment From: cbezmen

I didn't understand the real problem in here. In the stackoverflow example; there is no getter/setter RegisterUserDTO. When Jackson check the pojo canSerialize, however the object is not serializable for jackson.

new ObjectMapper().canSerialize(RegisterUserDTO.class, causeRef); 

This will return false. So Spring encoder can't find suitable converter to encode your object. So it throws:

Could not write request: no suitable HttpMessageConverter found for request type

I think message is clear.

Comment From: spring-cloud-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-cloud-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.