I am hitting a REST api using Spring Boot
RestTemplate. If the error response is smaller,
exception.getMessage() returns the complete JSON structure of error, but if the error JSON gets 3 4 more lines added, it wiped out from the few keys and add
...(557 bytes) at the last.
Getting perfect JSON error response if error body is smaller:
But if a few more keys gets added to the error JSON, I get the below
string on `exception.getMessage()`
The same API if I hit using Postman this is the complete error JSON:
How can I get the complete JSON out of exception message? And first of all, why is there a limit?