The stack trace is not coming back in response.
This is what I get :
org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error
I am using atlassian-connect-sprint boot
https://bitbucket.org/atlassian/atlassian-connect-spring-boot?_ga=2.234729559.835781234.1496347428-1870355731.1485493019
Here is a sample Service code
public class TestService{
@Autowired
private AtlassianHostRestClients atlassianHostRestClients;
public ConfluenceUser getUserProfile(String userKey){
ConfluenceUser user = null;
try{
String url = “/rest/api/user?key=” + userKey + “&expand=details.personal”;
user = atlassianHostRestClients.authenticatedAsHostActor().getForObject(url, ConfluenceUser.class);
}catch (RestClientException exception){
//log error
}catch(Exception error){
//log error
}
return user;
}
}
public class ConfluenceUser {
private String userKey;
private String username;
private String displayName;
private String accountId;
// getter setter properties
}
Thanks!!