![](/img/trans.png)
[英]HTTP response code: 411 for URL: http://api.twitter.com/oauth/request_token
[英]https://api.twitter.com/oauth/request_token : Connection Timeout
org.springframework.web.client.ResourceAccessException:POST請求“ https://api.twitter.com/oauth/request_token ”上的I / O錯誤:連接超時; 嵌套異常是java.net.SocketException:連接在org.springframework.web.client.RestTemplate.execute(RestTemplate.java:572)的org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:607)處超時在org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:493)在org.springframework.social.oauth1.OAuth1Template.exchangeForToken(OAuth1Template.java:192)
我對Python程序有完全相同的問題。
開機自檢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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.