Hi,

I'm using the LinkedIn Connect function and I'm seeing a kind of sometimes it works, sometimes it doesn't. This is what I seem to be getting at times

PHP Code:
[MSAWARN [2011-08-12 15:11:55,438RestTemplate.handleResponseError(478) | POST request for "https://api.linkedin.com/uas/oauth/accessToken" resulted in 401 (Unauthorized); invoking error handler
[MSAERROR [2011-08-12 15:11:55,442MySimpleExceptionResolver.doResolveException(24) | org.springframework.web.client.HttpClientErrorException401 Unauthorized
org
.springframework.web.client.HttpClientErrorException401 Unauthorized
    at org
.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:75)
    
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)
    
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)
    
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415)
    
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:391)
    
at org.springframework.social.oauth1.OAuth1Template.exchangeForToken(OAuth1Template.java:195)
    
at org.springframework.social.oauth1.OAuth1Template.exchangeForAccessToken(OAuth1Template.java:133)
    
at org.springframework.social.connect.web.ConnectSupport.completeConnection(ConnectSupport.java:101)
    
at org.springframework.social.connect.web.ConnectController.oauth1Callback(ConnectController.java:154
And then it suddenly works normally. So, the 401 seems kind of false.

Does Linkedin use some kind of timeout on your connect requests where in a development situation rapid connect, disconnect leads to exceptions?

Kind regards,
Marc