SpringSource/spring-android — Issue #1: Twitter OAuth - fetchRequestToken results http 406 (not acceptable)
Author: gyufi
Created: 2011-10-13 11:53:49+00:00
State: open

TwitterConnectionFactory.getOAuthOperations().fetchRequestToken("callback", null) throws HttpClientErrorException.

Caused by: org.springframework.web.client.HttpClientErrorException: 406 Not Acceptable
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:75)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:510)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:467)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:415)
at org.springframework.social.oauth1.OAuth1Template.exchangeForToken(OAuth1Template.java:194)
at org.springframework.social.oauth1.OAuth1Template.fetchRequestToken(OAuth1Template.java:116)