Twitter blocks IP for Streaming Api!


#1

Hi,

I am using Hosebird Client (hbc) for my app to connect to twitter Streaming api public stream endpoint. It was working fine till yesterday, but it stopped yesterday and I got following error:

[main] INFO com.twitter.hbc.httpclient.BasicClient - New connection executed: Hosebird-Client-01, endpoint: /1.1/statuses/filter.json?delimited=length&stall_warnings=true
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 Establishing a connection
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 IOException caught when establishing connection to https://stream.twitter.com/1.1/statuses/filter.json?delimited=length&stall_warnings=true
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 failed to establish connection properly
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 Done processing, preparing to close connection
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 Establishing a connection
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 IOException caught when establishing connection to https://stream.twitter.com/1.1/statuses/filter.json?delimited=length&stall_warnings=true
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 failed to establish connection properly
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 Done processing, preparing to close connection
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 Establishing a connection
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - Hosebird-Client-01 IOException caught when establishing connection to …

I tried to run same api with same OAuth keys from different IP and it worked. I think somehow twitter has blocked my IP.
If so how can I have it unblocked! Please help!

EDIT: However Iam able to access twitter from my browser with same IP. I understand if my IP is only blocked from connecting Streaming endpoint.


#2

The log you provided doesn’t give much in the way of diagnostic info. Could you try the connection using twurl and provide a the more detailed error message it’ll give you?


#3

Hi isaach,

I think the problem is related to the Hosebird Client (hbc). I have searched through internet and found that there is some problem regarding proxy I think that might be applicable to this situation of mine. Here also I am able to run the same program with same credential from my laptop but it gives the above error when trying from workplace. Can you please help regarding this problem!


#4

Are you able to run a test using the twurl tool (with the -t flag for trace) to help us understand the issue? Thanks.


#5

I met the same problem. But everything is okay when I run all the tests by using twurl.


#6

Just to be clear - you are able to connect to the streaming endpoint from your machine using twurl, but using hosebird client hbc in code, you have an error? correct? are you using the same application key for both connections?