I have met this issue when work with Allegro: API returns headers and body for 4** errors. I can get some valuable headers like trace-id but error body is empty. It looks strange because the exception message contains beggining of the response body.
I have tried both responseBody.ifPresent and contentUTF8.
P.S.
I haven't investigated what the cause is yet, so I just created this general description of the problem
This issue may be related with earlier one #1268
I have met this issue when work with Allegro: API returns headers and body for 4** errors. I can get some valuable headers like trace-id but error body is empty. It looks strange because the exception message contains beggining of the response body.
I have tried both
responseBody.ifPresent
andcontentUTF8
.P.S. I haven't investigated what the cause is yet, so I just created this general description of the problem