2016-06-27 5 views
1

org.springframework.web.client.ResourceAccessException : POST 요청시 "https://api.twitter.com/oauth/request_token"의 I/O 오류 : 연결 시간이 초과되었습니다. 중첩 예외는 java.net.SocketException : 연결 시간 초과 : at org.springframework.web.client.RestTemplate.doExecute (RestTemplate.java:607) at org.springframework.web.client.RestTemplate.execute (RestTemplate.java : org.springframework.social.oauth1.OAuth1Template.exchangeForToken에서 org.springframework.web.client.RestTemplate.exchange (RestTemplate.java:493) 에서 572) (OAuth1Template.java:192)https://api.twitter.com/oauth/request_token : 연결 시간 초과

답변

0

나는 정확한이 파이썬 프로그램과 같은 문제.

POST https://www.twitter.com/oauth/request_token

요청 헤더는이 유사합니다

headers= {'Authorization': 'OAuth oauth_nonce="4df3da1d-18e1-4ea7-a9ac-03374483d6f2", oauth_timestamp="1486140325", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="*****************", oauth_callback="http%3A%2F%example.com%3A8888%2Fauth%2Ftwitter", oauth_signature="***********************"'} 

결과 :

tornado.httpclient.HTTPError: HTTP 599: Timeout