I'm getting the following exception org.springframework.web.client.HttpClientErrorException: 400 Bad Request
on this statement final ResponseEntity<String> entity = restTemplate.getForEntity("http://localhost:12001/api/profiles/bymsisdn/0747894146", String.class);
But I'm getting successful response using curl url -X GET "http://localhost:8001/api/profiles/bymsisdn/0747894146"
Extra notes:
resttemplate = new RestTemplate(); // No Headers or extra convertors added as I think it's not required because using curl works fine