I have one get api that I'm calling internally in spring boot using RestTemplate. Everything is working fine except,
If the response size is less then 10kb
, there is no issue.
But if the response size is greater then 10kb
, RestTemplate is throwing exception with "500 Internal server error
".
Same request is working fine in postman.
So the question is, Is there any configuration to specify response size in RestTemplate? how can i increase the response size in RestTemplate?