twitter hosebird client not working
NickName:protocolon Ask DateTime:2013-08-31T02:20:45

twitter hosebird client not working

I am trying to get tweets via hbc-twitter4j-v3 . Example code is : https://github.com/twitter/hbc/blob/master/hbc-example/src/main/java/com/twitter/hbc/example/Twitter4jSampleStreamExample.java For enabling authentication on proxy, I have also set system properties for host,port and authentication. But it is showing following error-

[main] INFO com.twitter.hbc.httpclient.BasicClient - New connection executed: hosebird-client-0, endpoint: /1.1/statuses/sample.json?delimited=length&stall_warnings=true
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 Establishing a connection
[main] INFO com.twitter.hbc.httpclient.BasicClient - Stopping the client: hosebird-client-0, endpoint: /1.1/statuses/sample.json?delimited=length&stall_warnings=true
[main] INFO com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 exit event - Stopped by user: waiting for 5000 ms
[main] WARN com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 Client thread failed to finish in 5000 millis
[main] INFO com.twitter.hbc.httpclient.BasicClient - Successfully stopped the client: hosebird-client-0, endpoint: /1.1/statuses/sample.json?delimited=length&stall_warnings=true
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 Unknown host - stream.twitter.com
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 failed to establish connection properly
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 Done processing, preparing to close connection
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - hosebird-client-0 Shutting down httpclient connection manager

Any help?? Thanks in advance

Copyright Notice:Content Author:「protocolon」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18539198/twitter-hosebird-client-not-working

More about “twitter hosebird client not working” related questions

twitter hosebird client not working

I am trying to get tweets via hbc-twitter4j-v3 . Example code is : https://github.com/twitter/hbc/blob/master/hbc-example/src/main/java/com/twitter/hbc/example/Twitter4jSampleStreamExample.java For

Show Detail

twitter hosebird client maven usage

hi i'm a noob in this but i want to learn how to use the hosebird client, i downloaded it but from the readme don't understand how to use that. I installed eclipse Java EE and maven in my pc but fr...

Show Detail

Java application not authenticating against Twitter when run on different server

I am trying to run a Java .jar file on my remote Linux Amazon AMI server. Locally, when I run this Java project a permanent HTTP connection is established and everything works as expected. If I run...

Show Detail

Reading Tweets in Java with Twitter-hbc - IOException

I need to read tweets according to certain hashtag filters, so I tried out Twitter's streaming api with the java hbc client. As a start, I tried to run the sample code provided with the project in ...

Show Detail

how do I integrate hosebird client library to a Grails project?

My goal is to use the hosebird client provided by Twitter to stream tweets in my Grails project. I'm really not sure how I will approach this, but I first tried including it in the dependencies in...

Show Detail

Error connecting to Twitter Streams API through docker

I am having a strange issue when running my twitter streams application from docker. It works no problem when running through my IDE or directly running the JAR file. Does anyone know what may caus...

Show Detail

Twitter Java project : failed to establish connection properly

I am trying to consume Twitter streams with the help of a Java Kafka application. I have created a Twitter developer account and a Twitter application and generated all the 4 keys required. Pleas...

Show Detail

Streaming tweets with Hosebird

I'm trying to get a stream of public tweets using Hosebird (https://github.com/twitter/hbc), which I'm completely new to. I tried using their 'Quickstart' example, just to get an idea of what the

Show Detail

How to fix a Kafka error "IOException caught when establishing connection to https://stream.twitter.com" in Java?

Using Kafka, I am trying to stream data from twitter into Java, but when I run the program I am getting this error: [hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - Hoseb...

Show Detail

Twitter HBC API : Flag to check the status of the Streaming API Connection

How can I check if the twitter streaming API is connected or disconnected ? Is there any variable that stores this information ? On Failure, Twitter Hosebird Client (hbc) internally tries to recon...

Show Detail