Fix Twitter API
pvince opened this issue · comments
Paul Vincent commented
Twitter search is failling. This could bet due to 2 reasons:
- Ian said Twitter has dropped support for non-https queries, we use http.
- We don't rate limit the Twitter queries, although by virtue of the 2-query a minute, we should be under the 250 query / hour limit.
The error is:
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
http://api.twitter.com/1.1/search/tweets.json?q=hive13%20-2versa%20-b_hive13%20-katerinabonvora%20-thehive_berlin%20-danielleabroad%20-joelix%20-jennifuchs%20-tessameronejust%20-yvonne%20-girlinlaundromat&with_twitter_user_id=true&include_entities=1&include_rts=1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1458)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1452)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1106)
at twitter4j.internal.http.HttpResponseImpl.<init>(HttpResponseImpl.java:36)
at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:156)
... 7 more