简体   繁体   English

https://api.twitter.com/oauth/request_token:连接超时

[英]https://api.twitter.com/oauth/request_token : Connection Timeout

org.springframework.web.client.ResourceAccessException: I/O error on POST request for " https://api.twitter.com/oauth/request_token ":Connection timed out; org.springframework.web.client.ResourceAccessException:POST请求“ https://api.twitter.com/oauth/request_token ”上的I / O错误:连接超时; nested exception is java.net.SocketException: Connection timed out at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:607) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:572) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:493) at org.springframework.social.oauth1.OAuth1Template.exchangeForToken(OAuth1Template.java:192) 嵌套异常是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)

I have the exact same problem with a Python program. 我对Python程序有完全相同的问题。

POST https://www.twitter.com/oauth/request_token 开机自检https://www.twitter.com/oauth/request_token

Request headers are similar to this: 请求标头与此类似:

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="***********************"'}

Result: 结果:

tornado.httpclient.HTTPError: HTTP 599: Timeout

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 HTTP response code: 411 for URL: http://api.twitter.com/oauth/request_token - HTTP response code: 411 for URL: http://api.twitter.com/oauth/request_token 尝试从Twitter API获取Oauth request_token时出现“未经授权”错误 - Getting “Unauthorized” Error while trying to get Oauth request_token from twitter API 主机未解析:api.twitter.com:80 - Host is unresolved: api.twitter.com:80 Java Oauth request_token 流示例,无库 - Java Oauth request_token flow example, without libraries Caused by: com.google.api.client.http.HttpResponseException: 400 Bad Request POST https://oauth2.googleapis.com/token - Caused by: com.google.api.client.http.HttpResponseException: 400 Bad Request POST https://oauth2.googleapis.com/token 为什么Google的响应中缺少使用openid4java的OAuth request_token? - why OAuth request_token using openid4java is missing in the google's response? 如何从保管箱获取request_token - How to Obtain request_token from dropbox 获取服务帐户的访问令牌时出错:401 Unauthorized\nPOST https://oauth2.googleapis.com/token; 谷歌日历 API - Error getting access token for service account: 401 Unauthorized\nPOST https://oauth2.googleapis.com/token; Google Calendar API Twitter API 无法验证 oauth 签名和令牌 Z93F725A07423FE32146F448B - Twitter API Failed to validate oauth signature and token java 想要使oauth2的perl代码在Java“ curl -H”中工作授权:Bearer: <TOKEN> https://canvas.instructure.com/api/v1”; - Want to make perl code for oauth2 work in Java “curl -H 'Authorization: Bearer:<TOKEN> https://canvas.instructure.com/api/v1”;
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM