1

I use feign client to get an object from my provider with an object query: doGet(User u); Then an exception occurs: feign.FeignException$FeignClientException: [411 Length Required] during [GET] to ...

This exception does not always happen, sometimes it works well. Why does this error occur?

Adriaan
  • 17,741
  • 7
  • 42
  • 75
linkin_w92
  • 11
  • 2

1 Answers1

3

add to header of the request if you send empty body:

Content-Length:0

and send empty object json:

{}

in body of the request