Skip to content

TestRestTemplate PUT and POST requests not working when adding Netty as a dependency #7240

Closed
@eseidinger

Description

@eseidinger

When adding Netty as Dependency (compile 'io.netty:netty-all:4.1.6.Final') to my Spring Boot project my tests using TestRestTemplate.postForObject(...) and TestRestTemplate.put(...) aren't working anymore. I get the following error:

Failed to read HTTP message:... HttpMessageNotReadableException: Required request body is missing

Using TestRestTemplate.getForObject(...) works fine. RestTemplate.postForObject(...) and RestTemplate.put(...) are also working fine so I use those as a workaround for the moment.

I am using Spring Boot version 1.4.1.RELEASE

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions